From c1c2183561c7b2b324baa7e471411160f6891951 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 11 Mar 2021 22:30:35 +0100 Subject: [PATCH] windisplay: Parented child windows are implicitly undecorated I'm pretty sure applying these styles does nothing anyway, but we shouldn't specify them. --- panda/src/windisplay/winGraphicsWindow.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/panda/src/windisplay/winGraphicsWindow.cxx b/panda/src/windisplay/winGraphicsWindow.cxx index 3137045871..2fc41c5038 100644 --- a/panda/src/windisplay/winGraphicsWindow.cxx +++ b/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);