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.

(cherry picked from commit e35c3872dc)
This commit is contained in:
Frank Praznik authored and Sam Lantinga committed 2023-01-12 13:35:33 -08:00
1 parent e8ae155585
commit a47a045128
1 file changed
+4
+4
View File
@@ -1760,6 +1760,10 @@ void Wayland_RestoreWindow(_THIS, SDL_Window *window)
return;
}
if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
return;
}
/* Set this flag now even if we never actually maximized, eventually
* ShowWindow will take care of it along with the other window state.
*/