Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a50cf41
)
ecere/gui/drivers/X11Interface: Fixed windows jumping around again on Cinnamon and...
author
Jerome St-Louis
<jerome@ecere.com>
Wed, 12 Feb 2014 22:47:50 +0000
(07:47 +0900)
committer
Jerome St-Louis
<jerome@ecere.com>
Wed, 12 Feb 2014 22:48:49 +0000
(07:48 +0900)
- It would seem that it's no longer necessary to set 'offset = true' to avoid updating the normalAnchor
(For maximizing/unmaximizing scenarios)
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
94c2ff0
..
10f946a
100644
(file)
--- a/
ecere/src/gui/drivers/XInterface.ec
+++ b/
ecere/src/gui/drivers/XInterface.ec
@@
-2000,7
+2000,7
@@
class XInterface : Interface
{
bool offset = false;
int x, y, w, h;
- if(unmaximized)
+ if(unmaximized
&& window.nativeDecorations
)
{
if(window.nativeDecorations && RequestFrameExtents((X11Window)window.windowHandle))
WaitForFrameExtents(window);
@@
-2021,11
+2021,13
@@
class XInterface : Interface
XTranslateCoordinates(xGlobalDisplay, event->window,
RootWindow(xGlobalDisplay, DefaultScreen(xGlobalDisplay)), 0, 0,
&rootX, &rootY, &rootChild);
+
if(x != rootX || y != rootY)
{
+ /*if(event->send_event)
+ offset = true;*/
x = rootX;
y = rootY;
- offset = true;
}
}