You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Fix inconsistent window state on X11.
Fixes #66413. DisplayServerX11 tracks some internal state about whether the window is fullscreen, minimized, maximized or none. This commit queries the display server when the window changes, so that this internal state can be correctly updated.
This commit is contained in:
@@ -3142,6 +3142,11 @@ void DisplayServerX11::_window_changed(XEvent *event) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Query display server about a possible new window state.
|
||||
wd.fullscreen = _window_fullscreen_check(window_id);
|
||||
wd.minimized = _window_minimize_check(window_id);
|
||||
wd.maximized = _window_maximize_check(window_id, "_NET_WM_STATE");
|
||||
|
||||
{
|
||||
//the position in xconfigure is not useful here, obtain it manually
|
||||
int x, y;
|
||||
|
||||
Reference in New Issue
Block a user