Window impl on Linux progress

This commit is contained in:
2021-02-08 22:53:32 +01:00
parent dfe7963436
commit b30ab38ef2
4 changed files with 14 additions and 15 deletions
+1 -4
View File
@@ -319,13 +319,10 @@ void LinuxWindow::SetClientBounds(const Rectangle& clientArea)
{
X11::XSizeHints hints;
hints.flags = PMinSize | PMaxSize;
hints.min_height = height;
hints.max_height = height;
hints.min_width = width;
hints.max_width = width;
X11::XSetNormalHints(display, window, &hints);
}
@@ -605,7 +602,7 @@ void LinuxWindow::Maximize(bool enable)
XSendEvent(display, X11_DefaultRootWindow(display), 0, SubstructureRedirectMask | SubstructureNotifyMask, &event);
}
else
else if (enable)
{
X11::Atom states[2];
states[0] = wmMaxVert;