mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 07:03:36 -04:00
cocoa: Fix undecorated setting ignored when switching off fullscreen
This commit is contained in:
parent
7a8e218da7
commit
8c5e2e74f5
@ -918,8 +918,12 @@ set_properties_now(WindowProperties &properties) {
|
||||
_properties.set_fullscreen(false);
|
||||
|
||||
// Force properties to be reset to their actual values
|
||||
properties.set_undecorated(_properties.get_undecorated());
|
||||
properties.set_z_order(_properties.get_z_order());
|
||||
if (!properties.has_undecorated()) {
|
||||
properties.set_undecorated(_properties.get_undecorated());
|
||||
}
|
||||
if (!properties.has_z_order()) {
|
||||
properties.set_z_order(_properties.get_z_order());
|
||||
}
|
||||
properties.clear_fullscreen();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user