Browse Source

windisplay: Parented child windows are implicitly undecorated

I'm pretty sure applying these styles does nothing anyway, but we shouldn't specify them.
rdb 4 years ago
parent
commit
c1c2183561
1 changed files with 6 additions and 6 deletions
  1. 6 6
      panda/src/windisplay/winGraphicsWindow.cxx

+ 6 - 6
panda/src/windisplay/winGraphicsWindow.cxx

@@ -979,12 +979,12 @@ make_style(const WindowProperties &properties) {
 
   if (properties.get_fullscreen()) {
     window_style |= WS_POPUP | WS_SYSMENU;
-  } else {
-    if (_parent_window_handle) {
-      window_style |= WS_CHILD;
-    } else {
-      window_style |= WS_POPUP;
-    }
+  }
+  else if (_parent_window_handle) {
+    window_style |= WS_CHILD;
+  }
+  else {
+    window_style |= WS_POPUP;
 
     if (!properties.get_undecorated()) {
       window_style |= (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX);