mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +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
|
@ -1,3 +1,12 @@
|
|||
2011-02-14 Wolfgang Lux <wolfgang.lux@gmail.com>>
|
||||
|
||||
* Source/NSApplication.m (-_initDefaults):
|
||||
* Source/NSWindow.m (-_initDefaults):
|
||||
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
|
||||
are obscured by dock level windows.
|
||||
|
||||
2011-02-14 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Source/NSWindow.m (-setContentView:): Fix bug where a stray view
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -378,7 +378,15 @@ has blocked and waited for events.
|
|||
[super _initDefaults];
|
||||
[self setExcludedFromWindowsMenu: YES];
|
||||
[self setReleasedWhenClosed: NO];
|
||||
_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 NSIconWindow _initDefaults in NSApplication.m
|
||||
if ([[NSUserDefaults standardUserDefaults]
|
||||
boolForKey: @"GSAllowWindowsOverIcons"] == YES)
|
||||
_windowLevel = NSDockWindowLevel;
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue