When the window initially gets the click, it calls
-activateIgnoringOtherApps:, which orders all the windows front and
makes the key window key again (i.e. the previous key window). Then
the
window that got the click makes itself key. I'm not sure how to solve
that one.
Why not just calling activate.. after setting the window as Key?
The attached patch does that.
The activate.. method is put inside the if (!closed). In which
situation would a closed
window receive a mouseDown? And should it activate the app then?