mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
Use a single user default to turn on backend handling of window decorations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23652 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2fcb1806cc
commit
2bc0704e72
3 changed files with 30 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-09-28 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/win32/WIN32Server.m: Use GSBackHandlesWindowDecorations
|
||||
* Source/x11/XGServerWindow.m: ditto
|
||||
New user default to turn on backend handling of window decorations
|
||||
for all backends which support it.
|
||||
|
||||
2006-09-27 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/x11/XGServerWindow.m: Add more debug for checking style
|
||||
|
|
|
@ -179,10 +179,18 @@ printf("\n\n##############################################################\n");
|
|||
|
||||
NSDebugLog(@"Initializing GNUstep win32 backend.\n");
|
||||
defs = [NSUserDefaults standardUserDefaults];
|
||||
if ([defs objectForKey: @"GSWIN32HandlesWindowDecorations"])
|
||||
if ([defs objectForKey: @"GSBackHandlesWindowDecorations"])
|
||||
{
|
||||
handlesWindowDecorations =
|
||||
[defs boolForKey: @"GSWINHandlesWindowDecorations"];
|
||||
[defs boolForKey: @"GSBackHandlesWindowDecorations"];
|
||||
}
|
||||
else
|
||||
{
|
||||
if ([defs objectForKey: @"GSWIN32HandlesWindowDecorations"])
|
||||
{
|
||||
handlesWindowDecorations =
|
||||
[defs boolForKey: @"GSWINHandlesWindowDecorations"];
|
||||
}
|
||||
}
|
||||
[GSDisplayServer setDefaultServerClass: [WIN32Server class]];
|
||||
//Flag to handle main menu window type -- parent of other menu windows
|
||||
|
|
|
@ -1227,9 +1227,19 @@ static void setWindowHintsForStyle (Display *dpy, Window window,
|
|||
*/
|
||||
defs = [NSUserDefaults standardUserDefaults];
|
||||
|
||||
if ([defs objectForKey: @"GSX11HandlesWindowDecorations"])
|
||||
handlesWindowDecorations
|
||||
= [defs boolForKey: @"GSX11HandlesWindowDecorations"];
|
||||
if ([defs objectForKey: @"GSBackHandlesWindowDecorations"])
|
||||
{
|
||||
handlesWindowDecorations
|
||||
= [defs boolForKey: @"GSBackHandlesWindowDecorations"];
|
||||
}
|
||||
else
|
||||
{
|
||||
if ([defs objectForKey: @"GSX11HandlesWindowDecorations"])
|
||||
{
|
||||
handlesWindowDecorations
|
||||
= [defs boolForKey: @"GSX11HandlesWindowDecorations"];
|
||||
}
|
||||
}
|
||||
|
||||
generic.flags.useWindowMakerIcons = NO;
|
||||
if ((generic.wm & XGWM_WINDOWMAKER) != 0)
|
||||
|
|
Loading…
Reference in a new issue