mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Ensure WindowData minimized/maximized are mutually exclusive
The window manager can break the assumption that
fullscreen/maximized/minimized values are mutually exclusive.
(cherry picked from commit e4d052e284)
This commit is contained in:
committed by
Rémi Verschelde
parent
bab96e71d2
commit
28012c40fb
@@ -3483,8 +3483,8 @@ void DisplayServerX11::_window_changed(XEvent *event) {
|
|||||||
|
|
||||||
// Query display server about a possible new window state.
|
// Query display server about a possible new window state.
|
||||||
wd.fullscreen = _window_fullscreen_check(window_id);
|
wd.fullscreen = _window_fullscreen_check(window_id);
|
||||||
wd.minimized = _window_minimize_check(window_id);
|
wd.maximized = _window_maximize_check(window_id, "_NET_WM_STATE") && !wd.fullscreen;
|
||||||
wd.maximized = _window_maximize_check(window_id, "_NET_WM_STATE");
|
wd.minimized = _window_minimize_check(window_id) && !wd.fullscreen && !wd.maximized;
|
||||||
|
|
||||||
{
|
{
|
||||||
//the position in xconfigure is not useful here, obtain it manually
|
//the position in xconfigure is not useful here, obtain it manually
|
||||||
|
|||||||
Reference in New Issue
Block a user