mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:50:48 +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
0bc56c6769
commit
13e3cc042d
3 changed files with 27 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue