From 9d2579db2611b1fd54e7b0f954c8bb4373ef24f1 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Mon, 24 Aug 2026 14:01:11 -0400 Subject: [PATCH] wayland: Don't presume that the window is non-resizable when hidden Don't presume that the window requires fixed size handling until a configure event sets the state. Fixes setting an initial size on a hidden window (regression from fcb5ef8a9ccb8b005f81de06a192c1c1c83549cc). --- src/video/wayland/SDL_waylandwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index 7ca58cd8f1..adfd7a1e7b 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -398,7 +398,8 @@ static void ConfigureWindowGeometry(SDL_Window *window) viewport_height = data->requested.pixel_height; } - if (data->viewport && data->waylandData->subcompositor && !data->floating && !data->is_fullscreen) { + if (data->shell_surface_status != WAYLAND_SHELL_SURFACE_STATUS_HIDDEN && + data->viewport && data->waylandData->subcompositor && !data->floating && !data->is_fullscreen) { int min_width, min_height, max_width, max_height; if (window->flags & SDL_WINDOW_RESIZABLE) { min_width = window->min_w;