From: Jerome St-Louis Date: Wed, 12 Feb 2014 22:47:50 +0000 (+0900) Subject: ecere/gui/drivers/X11Interface: Fixed windows jumping around again on Cinnamon and... X-Git-Tag: 0.44.09.9~50 X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06217d4d40e18eb6b1489ec597780721bcc6a811;hp=a50cf41d69dbb9f096bbea39046932db324d417f;p=sdk ecere/gui/drivers/X11Interface: Fixed windows jumping around again on Cinnamon and native window unmaximizing with wrong position information - It would seem that it's no longer necessary to set 'offset = true' to avoid updating the normalAnchor (For maximizing/unmaximizing scenarios) --- diff --git a/ecere/src/gui/drivers/XInterface.ec b/ecere/src/gui/drivers/XInterface.ec index 94c2ff0..10f946a 100644 --- 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; } }