ecere/gui/drivers/XInterface: Removed position and size flags when setting min/max...
authorJerome St-Louis <jerome@ecere.com>
Wed, 12 Feb 2014 23:06:10 +0000 (08:06 +0900)
committerJerome St-Louis <jerome@ecere.com>
Wed, 12 Feb 2014 23:06:10 +0000 (08:06 +0900)
ecere/src/gui/drivers/XInterface.ec

index 10f946a..3bb7145 100644 (file)
@@ -2494,7 +2494,6 @@ class XInterface : Interface
                }
 
                // Set Normal hints for minimum/maximum size
-               if(true)
                {
                   XSizeHints hints = { 0 };
                   hints.min_width = minW;
@@ -2726,14 +2725,11 @@ class XInterface : Interface
                XSizeHints hints = { 0 };
                hints.min_width = hints.max_width = w;
                hints.min_height = hints.max_height = h;
-               hints.flags |= PMinSize|PMaxSize|PPosition|PSize;
+               hints.flags |= PMinSize|PMaxSize;
+
                XSetWMNormalHints(xGlobalDisplay, (X11Window)window.windowHandle, &hints);
             }
          }
-#if defined(__APPLE__)
-//         if(window.created && !visible)
-  //          XUnmapWindow(xGlobalDisplay, (X11Window)window.windowHandle);
-#endif
       }
    }