From bad8bbadf49252c486e003d2c1b96d2d68e2cabf Mon Sep 17 00:00:00 2001 From: Markus Mattes Date: Sun, 22 Jul 2018 20:00:25 +0200 Subject: [PATCH] Fix for #4757 --- client/X11/xf_window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/X11/xf_window.c b/client/X11/xf_window.c index d28a34d..94d2e6f 100644 --- a/client/X11/xf_window.c +++ b/client/X11/xf_window.c @@ -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); } -- 2.7.4