mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
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:
parent
25bd765dd8
commit
5bec1c1259
1 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue