Irritating focus behaviour when closing window (other window of same app pops up)
Hello!
Assume I have a few Finder windows open, and some other apps.
Lets say I am working on a Pages document belonging to project A. While I am working, I use Spotlight to open a folder (i. .e. another Finder window) because I need to see some files that relate to the project (for copying/sending to someone, whatever).
When done with the files, I close the Finder window, in order to go on with my Pages document. But what happens? Instead of handing focus back to where it was before (i. e. on the Pages window), OS X throws a different Finder window on me! A window that in most cases is of no use at all, since it probably relates to a different project B, which I intend to work on in the afternoon.
Finder was just an example; the behaviour is the same with most apps, so it seems to be a problem of OS X.
This is a big distraction in dayly work, and it still annoys me after more than 5 years of using OS X.
If you watch closely, you see that together with the new Finder window, Spotlight also brings other finder windows in front right behind the new window, so it happens earlier. This is annoying, since it is a very poor and unrealistic assumption that all my Finder windows belong to the same project I am working on. The same goes for Safari/FireFox , Pages , whatever!
In some cases, windows are brought to focus even at the cost of switching me to a different space (desktop) — even more distracting.
Is there any cure for this?
I have already switched off "group windows by app" and "when switching app, choose a Space that has open windows of that app" in the system preferences. (Sorry, the options are translations from German, so probably not the same words.)
(I am using Witch as a helper to improve window switching, but it does not seem to be able to fix the above problem.)
Thanks for any ideas.
Philipp
MacBook Pro with Retina display, OS X Yosemite (10.10.3)