ecere/gui/Window: Fixed crash coming back from fullscreen on Linux
authorJerome St-Louis <jerome@ecere.com>
Thu, 10 Jul 2014 08:41:05 +0000 (04:41 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 10 Jul 2014 09:03:55 +0000 (05:03 -0400)
ecere/src/gui/Window.ec

index 74f22d9..5764d83 100644 (file)
@@ -5212,7 +5212,7 @@ private:
          LogErrorCode(graphicsLoadingFailed, _class.name);
 
       // Do this here to avoid problems on Windows
-      if(stateBackup == maximized)
+      if(rootWindow == this && parent && stateBackup == maximized)
          property::state = maximized;
       return result;
    }