Clicking on app in dock does not switch focus to the app
I've had this problem for a few months now and I thought it was related to my external monitor, but it's been happening when I am using my MacBook Pro by itself...
If I'm using an app, clicking on an app that is already opened doesn't switch to that app right away, instead, it deselects the app I'm in (the menu bar still refers to the app but the window gets greyed out as I'm not selecting it anymore). I then click the icon again and it switches to it.
This is what happens most of the times but sometimes the second click won't switch to the app, you then have to manually find the app and use it.
This isn't really a massive problem but I thought it would get fixed in previous updates if it was a bug, which obviously did not happen.
EDIT: This also happens when opening an app through spotlight. It is especially annoying their because I cannot "reclick" it like I do in the dock and it does not even work when I retype the app and hit enter, so I then have to click the dock twice or look for the app.
Has anyone experienced this, and if so, did you find a solution?
MacBook Pro 13”, macOS 10.15