Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41c9c5c
)
ecere/gui/drivers/XInterface: Break the anchors upon moving fixed windows
author
Jerome St-Louis
<jerome@ecere.com>
Sat, 8 Feb 2014 14:08:09 +0000
(21:08 +0700)
committer
Jerome St-Louis
<jerome@ecere.com>
Sun, 9 Feb 2014 03:39:26 +0000
(10:39 +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
70592ff
..
bdb741f
100644
(file)
--- a/
ecere/src/gui/drivers/XInterface.ec
+++ b/
ecere/src/gui/drivers/XInterface.ec
@@
-1928,6
+1928,15
@@
class XInterface : Interface
h += window.size.h - window.clientSize.h;
*/
}
+
+ // Break the anchors for moveable/resizable windows
+ if(window.style.fixed && window.state == normal)
+ {
+ window.normalAnchor = Anchor { left = x, top = y };
+ window.normalSizeAnchor = SizeAnchor { { w, h } };
+ window.anchored = false;
+ }
+
window.Position(x, y, w, h, true, true, true, true, false, false);
}
break;