ecere/gui/drivers/XInterface: Querying existing hints before setting new hints
authorJerome St-Louis <jerome@ecere.com>
Wed, 12 Feb 2014 23:28:21 +0000 (08:28 +0900)
committerJerome 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

index c92ed1c..891c5a7 100644 (file)
@@ -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);
             }
          }