mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:30:37 +00:00
Add user default to allow placing app icons and mini windows at normal
window level. This is particularly convenient with some window managers (*cough*, kwin) where application and pop up menus would be obscured by dock level windows. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32165 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d676944cd6
commit
e8de70e645
3 changed files with 27 additions and 2 deletions
|
@ -465,7 +465,15 @@ NSApplication *NSApp = nil;
|
|||
return;
|
||||
}
|
||||
#endif
|
||||
_windowLevel = NSDockWindowLevel;
|
||||
/* App icons and mini windows are displayed at dock level by default. Yet,
|
||||
with the current window level mapping in -back, some window managers
|
||||
will order pop up and context menus behind app icons and mini windows.
|
||||
Therefore, it is possible to have app icons and mini windows displayed
|
||||
at normal window level under control of a user preference. */
|
||||
// See also NSMiniWindow -_initDefaults in NSWindow.m
|
||||
if ([[NSUserDefaults standardUserDefaults]
|
||||
boolForKey: @"GSAllowWindowsOverIcons"] == YES)
|
||||
_windowLevel = NSDockWindowLevel;
|
||||
}
|
||||
|
||||
- (void) rightMouseDown: (NSEvent *)theEvent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue