Don't activate an application upon a single click into a miniwindow.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27622 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
wlux 2009-01-17 16:45:14 +00:00
parent 511eb93919
commit 203b93060e
2 changed files with 11 additions and 2 deletions

View file

@ -3530,8 +3530,14 @@ resetCursorRectsForView(NSView *theView)
}
}
/* Activate the app *after* making the receiver key, as app
activation tries to make the previous key window key. */
if ([NSApp isActive] == NO && self != [NSApp iconWindow])
activation tries to make the previous key window key.
However, don't activate the app after a single click into
the app icon or a miniwindow. This allows dragging app
icons and miniwindows without unnecessarily switching
applications (cf. Sect. 4 of the OpenStep UI Guidelines).
*/
if ((_styleMask & (NSIconWindowMask | NSMiniWindowMask)) == 0
&& [NSApp isActive] == NO)
{
v = nil;
[NSApp activateIgnoringOtherApps: YES];