Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fe79ea
)
ecere/gui/drivers/XInterface: Querying existing hints before setting new hints
author
Jerome St-Louis
<jerome@ecere.com>
Wed, 12 Feb 2014 23:28:21 +0000
(08:28 +0900)
committer
Jerome St-Louis
<jerome@ecere.com>
Wed, 12 Feb 2014 23:28:21 +0000
(08:28 +0900)
- Fixed Find dialog popping up at 0,0
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
c92ed1c
..
891c5a7
100644
(file)
--- a/
ecere/src/gui/drivers/XInterface.ec
+++ b/
ecere/src/gui/drivers/XInterface.ec
@@
-2724,10
+2724,11
@@
class XInterface : Interface
if(window.style.fixed && !window.style.sizable)
{
XSizeHints hints = { 0 };
+ long supplied;
+ XGetWMNormalHints(xGlobalDisplay, (X11Window)window.windowHandle, &hints, &supplied);
hints.min_width = hints.max_width = w;
hints.min_height = hints.max_height = h;
hints.flags |= PMinSize|PMaxSize;
-
XSetWMNormalHints(xGlobalDisplay, (X11Window)window.windowHandle, &hints);
}
}