mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 15:30:38 +00:00
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:
parent
511eb93919
commit
203b93060e
2 changed files with 11 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue