mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
x11: Fix black screen when switching fullscreen without WM
Reconfiguring the window to origin 0, 0 is unnecessary and if the win origin is already 0, 0 this results in Panda waiting for a ConfigureNotify that never comes.
This commit is contained in:
parent
5804c663a9
commit
388ddda9d7
@ -768,12 +768,15 @@ set_properties_now(WindowProperties &properties) {
|
||||
int value_mask = 0;
|
||||
|
||||
if (_properties.get_fullscreen()) {
|
||||
changes.x = 0;
|
||||
changes.y = 0;
|
||||
value_mask |= CWX | CWY;
|
||||
properties.clear_origin();
|
||||
|
||||
} else if (properties.has_origin()) {
|
||||
if (_properties.get_x_origin() != 0 ||
|
||||
_properties.get_y_origin() != 0) {
|
||||
changes.x = 0;
|
||||
changes.y = 0;
|
||||
value_mask |= CWX | CWY;
|
||||
properties.clear_origin();
|
||||
}
|
||||
}
|
||||
else if (properties.has_origin()) {
|
||||
changes.x = properties.get_x_origin();
|
||||
changes.y = properties.get_y_origin();
|
||||
if (changes.x != -1) value_mask |= CWX;
|
||||
|
Loading…
x
Reference in New Issue
Block a user