From 33c44ef5a780dee626e3f3348fa2954863c435b4 Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Sun, 9 Feb 2014 10:40:58 +0700 Subject: [PATCH] ecere/gui/drivers/XInterface: Fixed non-resizable windows on WMs not supporting MWM_FUNC --- ecere/src/gui/drivers/XInterface.ec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ecere/src/gui/drivers/XInterface.ec b/ecere/src/gui/drivers/XInterface.ec index 383a591..f7b05f1 100644 --- a/ecere/src/gui/drivers/XInterface.ec +++ b/ecere/src/gui/drivers/XInterface.ec @@ -2703,6 +2703,16 @@ class XInterface : Interface XMoveWindow(xGlobalDisplay, (X11Window)window.windowHandle, x, y); else if(resize) XResizeWindow(xGlobalDisplay, (X11Window)window.windowHandle, w, h); + + // Reset min/max for fixed size windows on WMs not looking at MWM_FUNC_RESIZE (e.g. Cinnamon) + if(window.style.fixed && !window.style.sizable) + { + XSizeHints hints = { 0 }; + hints.min_width = hints.max_width = w; + hints.min_height = hints.max_height = h; + hints.flags |= PMinSize|PMaxSize|PPosition|PSize; + XSetWMNormalHints(xGlobalDisplay, (X11Window)window.windowHandle, &hints); + } } #if defined(__APPLE__) // if(window.created && !visible) -- 1.8.3.1