I find myself often struggling to simply switch between open applications with shortcut (CMD + TAB). Sometimes the programs appear in the icons list to switch to (what appears when pressing CMD + TAB) but selecting them does nothing. It only works if I select the application via dock.
How can I reliably bring an application to the foreground?
Edit: Answering to comments: I want to switch between applications (ideally I'd want to switch between windows, like in Windows OS but I know this isn't possible with MacOS). I'm not using multiple spaces or have additional screens.
Edit2: I think it's possible to narrow down this question to the situation where an application appears on the selection view (what appears when pressing CMD + TAB) and selecting it does not make the application come to the foreground. E.g. I'm using Slack (not full screen), switch to another application (not full screen), then press CMD + TAB, select Slack and nothing happens. The application is definitely open. I have to click on the application's icon in the dock for it to come to the foreground. Why?