I'm currently using Windows 11. I often use Alt-Tab to go back and forth between windows. I have Command Prompt pinned to my taskbar. When I click on it, it opens a new command prompt. However, if I press Alt-Tab twice after opening a new command prompt, I don't get back to the command prompt.
Upon further inspection, it looks as though command prompt windows that are opened using the task bar become the last window on Alt-Tab. That is, if I open a command prompt and press Alt-Tab afterwards, I need to press Shift-Alt-Tab in order to return to the command prompt I just had open.
Even more odd, this does not happen if I open up Command Prompt by using the search bar in the task bar. It's only from clicking on the pinned Command Prompt app that this odd behavior occurs with.
I'm also not using any weird shortcuts or links. I just removed the pinned Command Prompt app from the task bar, right-clicked on the Command Prompt app from the search menu (on the task bar), and re-pinned that exact app. Again, the pinned version acts weird (as described above), while opening the non-pinned version from the search works exactly as expected.
How can I get the pinned command prompt to work with the task switcher correctly?