ecere(Linux/X11): Fix for annoying X error on startup (Was positionning the window...
authorJerome St-Louis <jstlouis@gallium.com>
Thu, 13 Oct 2011 21:00:27 +0000 (17:00 -0400)
committerJerome St-Louis <jstlouis@gallium.com>
Thu, 13 Oct 2011 21:00:27 +0000 (17:00 -0400)
ecere/src/gui/Window.ec

index 039fe4b..4431a0e 100644 (file)
@@ -1012,7 +1012,7 @@ private:
 
       // This is required to get proper initial decoration size using native decorations on Windows
       if(nativeDecorations && guiApp && guiApp.interfaceDriver && !visible)
-         guiApp.interfaceDriver.PositionRootWindow(this, x, y, size.w, size.h, true, true);
+         guiApp.interfaceDriver.PositionRootWindow(this, x, y, Max(1, size.w), Max(1, size.h), true, true);
       GetDecorationsSize(&ew, &eh);
 
       if(anchor.left.type >= cascade && (state == normal /*|| state == Hidden*/))