diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index 0307378b6..e2f0c611c 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -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. */