mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +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
b1496f3b3e
commit
42e2e73ebd
2 changed files with 11 additions and 2 deletions
|
@ -6,6 +6,9 @@
|
|||
* Source/NSWindow.m (-undoManager, -dealloc): Create an undo
|
||||
manager for a window when necessary.
|
||||
|
||||
* Source/NSWindow.m (-sendEvent:): Don't activate an application
|
||||
upon a single click into a miniwindow.
|
||||
|
||||
2009-01-16 12:04-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSMenuItem.m: Retain the GSMenuSeparator instance if
|
||||
|
|
|
@ -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…
Reference in a new issue