From e946e1ebfa76cc54c50e1c6b42bd9c87057cb2ab Mon Sep 17 00:00:00 2001 From: Fred Kiefer Date: Sun, 31 Mar 2002 20:18:47 +0000 Subject: [PATCH] In [window:::] set the initial hints for a window, as setWindowHintsForStyle() would otherwise never be called. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@13281 72102866-910b-0410-8b05-ffd578937521 --- Source/x11/XGServerWindow.m | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Source/x11/XGServerWindow.m b/Source/x11/XGServerWindow.m index 4d69d36..d29c8f3 100644 --- a/Source/x11/XGServerWindow.m +++ b/Source/x11/XGServerWindow.m @@ -961,6 +961,19 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number, window->siz_hints.height = NSHeight(frame); window->siz_hints.flags = USPosition|PPosition|USSize|PSize; + // send to the WM window style hints + if ((generic.wm & XGWM_WINDOWMAKER) != 0) + { + XChangeProperty(XDPY, window->ident, generic.win_decor_atom, + generic.win_decor_atom, 32, PropModeReplace, + (unsigned char *)&window->win_attrs, + sizeof(GNUstepWMAttributes)/sizeof(CARD32)); + } + else + { + setWindowHintsForStyle (XDPY, window->ident, style); + } + // Use the globally active input mode window->gen_hints.flags = InputHint; window->gen_hints.input = False;