This commit is contained in:
Markus Mattes
2018-07-22 20:00:25 +02:00
parent 5a154dccbd
commit bad8bbadf4

View File

@@ -591,11 +591,10 @@ void xf_ResizeDesktopWindow(xfContext* xfc, xfWindow* window, int width,
size_hints->win_gravity = NorthWestGravity;
size_hints->min_width = size_hints->min_height = 1;
size_hints->max_width = size_hints->max_height = 16384;
XSetWMNormalHints(xfc->display, window->handle, size_hints);
XResizeWindow(xfc->display, window->handle, width, height);
#ifdef WITH_XRENDER
if (!settings->SmartSizing)
if (!settings->SmartSizing && !settings->DynamicResolutionUpdate)
#endif
{
if (!xfc->fullscreen)
@@ -604,10 +603,11 @@ void xf_ResizeDesktopWindow(xfContext* xfc, xfWindow* window, int width,
* not be resizable */
size_hints->min_width = size_hints->max_width = width;
size_hints->min_height = size_hints->max_height = height;
XSetWMNormalHints(xfc->display, window->handle, size_hints);
}
}
XSetWMNormalHints(xfc->display, window->handle, size_hints);
XFree(size_hints);
}