windisplay: Parented child windows are implicitly undecorated

I'm pretty sure applying these styles does nothing anyway, but we shouldn't specify them.
This commit is contained in:
rdb 2021-03-11 22:30:35 +01:00
parent 48fb2f721f
commit c1c2183561

View File

@ -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);