mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 00:06:44 -04:00
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:
parent
48fb2f721f
commit
c1c2183561
@ -979,12 +979,12 @@ make_style(const WindowProperties &properties) {
|
|||||||
|
|
||||||
if (properties.get_fullscreen()) {
|
if (properties.get_fullscreen()) {
|
||||||
window_style |= WS_POPUP | WS_SYSMENU;
|
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()) {
|
if (!properties.get_undecorated()) {
|
||||||
window_style |= (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX);
|
window_style |= (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user