mirror of
https://github.com/gnustep/libs-back.git
synced 2025-05-31 01:11:00 +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
48ed102f75
commit
e946e1ebfa
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.height = NSHeight(frame);
|
||||||
window->siz_hints.flags = USPosition|PPosition|USSize|PSize;
|
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
|
// Use the globally active input mode
|
||||||
window->gen_hints.flags = InputHint;
|
window->gen_hints.flags = InputHint;
|
||||||
window->gen_hints.input = False;
|
window->gen_hints.input = False;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue