Merge pull request #4762 from mmattes/issue/4757

Fix for #4757
This commit is contained in:
akallabeth 2018-07-30 13:31:32 +02:00 committed by GitHub
commit 88474af925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}