mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-26 00:21:39 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user