Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
648417f
)
ecere/gui/drivers/XInterface: Fixed non-resizable windows on WMs not supporting MWM_FUNC
author
Jerome St-Louis
<jerome@ecere.com>
Sun, 9 Feb 2014 03:40:58 +0000
(10:40 +0700)
committer
Jerome St-Louis
<jerome@ecere.com>
Sun, 9 Feb 2014 03:58:06 +0000
(10:58 +0700)
ecere/src/gui/drivers/XInterface.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/drivers/XInterface.ec
b/ecere/src/gui/drivers/XInterface.ec
index
383a591
..
f7b05f1
100644
(file)
--- 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);
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)
}
#if defined(__APPLE__)
// if(window.created && !visible)