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:
rfm 2006-09-28 13:09:57 +00:00
parent 1877bb7075
commit b95cc86af9
3 changed files with 30 additions and 5 deletions

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