mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-25 05:52:52 +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
1877bb7075
commit
b95cc86af9
3 changed files with 30 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue