mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-14 03:09:04 +00:00
Changed: #926 enable window resizing
This commit is contained in:
parent
38a8e19a13
commit
5d594a197d
1 changed files with 9 additions and 5 deletions
|
@ -1636,11 +1636,15 @@ bool CDriverGL::setMode(const GfxMode& mode)
|
||||||
size_hints.y = 0;
|
size_hints.y = 0;
|
||||||
size_hints.width = mode.Width;
|
size_hints.width = mode.Width;
|
||||||
size_hints.height = mode.Height;
|
size_hints.height = mode.Height;
|
||||||
size_hints.flags = PSize | PMinSize | PMaxSize;
|
size_hints.flags = PSize;
|
||||||
size_hints.min_width = mode.Width;
|
if (!mode.Windowed)
|
||||||
size_hints.min_height = mode.Height;
|
{
|
||||||
size_hints.max_width = mode.Width;
|
size_hints.flags = PSize | PMinSize | PMaxSize;
|
||||||
size_hints.max_height = mode.Height;
|
size_hints.min_width = mode.Width;
|
||||||
|
size_hints.min_height = mode.Height;
|
||||||
|
size_hints.max_width = mode.Width;
|
||||||
|
size_hints.max_height = mode.Height;
|
||||||
|
}
|
||||||
|
|
||||||
XSetWMNormalHints(dpy, win, &size_hints);
|
XSetWMNormalHints(dpy, win, &size_hints);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue