Skip to content

Commit fc6bbde

Browse files
committed
wayland: Set the initial min/max limits on non-libdecor windows during a show operation
Libdecor windows will have this done during the first frame configure, but bare xdg-toplevel windows need it set explicitly, or a non-resizable window might be able to be resized.
1 parent f520062 commit fc6bbde

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/video/wayland/SDL_waylandwindow.c

+2
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,8 @@ void Wayland_ShowWindow(_THIS, SDL_Window *window)
13791379
data->shell_surface.xdg.roleobj.toplevel = xdg_surface_get_toplevel(data->shell_surface.xdg.surface);
13801380
xdg_toplevel_set_app_id(data->shell_surface.xdg.roleobj.toplevel, c->classname);
13811381
xdg_toplevel_add_listener(data->shell_surface.xdg.roleobj.toplevel, &toplevel_listener_xdg, data);
1382+
1383+
SetMinMaxDimensions(window, SDL_FALSE);
13821384
}
13831385
}
13841386

0 commit comments

Comments
 (0)