Merge pull request #66728 from MatthewZelriche/x11-state-fix

Fix inconsistent window state on X11.
This commit is contained in:
Rémi Verschelde 2022-10-03 09:23:36 +02:00
commit 5c4d07f952

View file

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