mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-04 06:12:04 +08:00
wayland: Don't try to restore non-resizable windows
Libdecor can crash if attempting to un-maximize a window that was not set as resizable.
This commit is contained in:
committed by
Sam Lantinga
parent
50f2eb7d41
commit
e35c3872dc
@@ -1699,6 +1699,10 @@ void Wayland_RestoreWindow(_THIS, SDL_Window *window)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Set this flag now even if we never actually maximized, eventually
|
/* Set this flag now even if we never actually maximized, eventually
|
||||||
* ShowWindow will take care of it along with the other window state.
|
* ShowWindow will take care of it along with the other window state.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user