ecere/gui/Window: Fixed Alt-F4 to close maximized window with native decorations
authorJerome St-Louis <jerome@ecere.com>
Wed, 7 Aug 2013 14:27:32 +0000 (10:27 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 7 Aug 2013 14:27:32 +0000 (10:27 -0400)
- This problem has manifesting itself with the SimSkin

ecere/src/gui/Window.ec

index e2ba111..bed4c7c 100644 (file)
@@ -2215,7 +2215,11 @@ private:
       Point scroll = this.scroll;
 
       if(state == maximized)
+      {
          parent = GetParentMenuBar();
+         if(!parent && nativeDecorations)
+            parent = rootWindow;
+      }
 
       if(parent)
       {