ecere/gui/drivers/X11Interface: Fixed windows jumping around again on Cinnamon and...
authorJerome St-Louis <jerome@ecere.com>
Wed, 12 Feb 2014 22:47:50 +0000 (07:47 +0900)
committerJerome 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

index 94c2ff0..10f946a 100644 (file)
@@ -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;
                            }
                         }