Skip to content

Instantly share code, notes, and snippets.

@jerstlouis
Created July 7, 2014 19:42
Show Gist options
  • Save jerstlouis/b96f87d0edb6ebd2a8e2 to your computer and use it in GitHub Desktop.
Save jerstlouis/b96f87d0edb6ebd2a8e2 to your computer and use it in GitHub Desktop.
jerome@mint14-64 /ecere-sdk/master $ git diff .
diff --git a/ecere/src/gui/drivers/XInterface.ec b/ecere/src/gui/drivers/XInterface.ec
index b74ed32..cd0e171 100644
--- a/ecere/src/gui/drivers/XInterface.ec
+++ b/ecere/src/gui/drivers/XInterface.ec
@@ -2926,7 +2926,7 @@ class XInterface : Interface
x += desktopX;
y += desktopY;
- if(!fullScreenMode && (!atomsSupported[_net_wm_state] || window.state != maximized))
+ if(!fullScreenMode && (!atomsSupported[_net_wm_state] || (window.state != maximized || !window.visible)))
{
if(move && resize)
XMoveResizeWindow(xGlobalDisplay, (X11Window)window.windowHandle, x, y, w, h);
@@ -2936,7 +2936,7 @@ class XInterface : Interface
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)
+ if(window.style.fixed && !window.style.sizable && window.state != maximized)
{
XSizeHints hints = { 0 };
long supplied;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment