wayland: Call SetFullscreen directly in ShowWindow.

This cuts out an extra flush when getting the first configure event.
This commit is contained in:
Ethan Lee 2022-01-25 13:07:00 -05:00
parent 8c660ccb6f
commit f0e768da43
1 changed files with 2 additions and 2 deletions

View File

@ -778,8 +778,8 @@ void Wayland_ShowWindow(_THIS, SDL_Window *window)
* libdecor will call this as part of their configure event! * libdecor will call this as part of their configure event!
* -flibit * -flibit
*/ */
Wayland_SetWindowFullscreen(_this, window, SDL_GetDisplayForWindow(window), SDL_WaylandOutputData *odata = SDL_GetDisplayForWindow(window)->driverdata;
(window->flags & SDL_WINDOW_FULLSCREEN) != 0); SetFullscreen(window, (window->flags & SDL_WINDOW_FULLSCREEN) ? odata->output : NULL);
if (data->shell_surface.xdg.surface) { if (data->shell_surface.xdg.surface) {
while (!data->shell_surface.xdg.initial_configure_seen) { while (!data->shell_surface.xdg.initial_configure_seen) {
WAYLAND_wl_display_flush(c->display); WAYLAND_wl_display_flush(c->display);