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 fcb5ef8a9c).
This commit is contained in:
Frank Praznik
2026-08-24 14:01:11 -04:00
parent fb8a32cc75
commit 9d2579db26

View File

@@ -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;