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:
Richard Frith-MacDonald 2006-09-28 13:09:57 +00:00
parent 2fcb1806cc
commit 2bc0704e72
3 changed files with 30 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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)