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
This commit is contained in:
FredKiefer 2002-03-31 20:18:47 +00:00
parent 25bd765dd8
commit 5bec1c1259

View file

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