mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:50:48 +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
|
@ -6,6 +6,9 @@
|
||||||
* Source/NSWindow.m (-undoManager, -dealloc): Create an undo
|
* Source/NSWindow.m (-undoManager, -dealloc): Create an undo
|
||||||
manager for a window when necessary.
|
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>
|
2009-01-16 12:04-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Source/NSMenuItem.m: Retain the GSMenuSeparator instance if
|
* 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
|
/* Activate the app *after* making the receiver key, as app
|
||||||
activation tries to make the previous key window key. */
|
activation tries to make the previous key window key.
|
||||||
if ([NSApp isActive] == NO && self != [NSApp iconWindow])
|
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;
|
v = nil;
|
||||||
[NSApp activateIgnoringOtherApps: YES];
|
[NSApp activateIgnoringOtherApps: YES];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue