Blame SOURCES/0006-wayland-Call-SetFullscreen-directly-in-ShowWindow.patch

e54a86
From f0e768da43173cf62732fc20d1f80eb777d6d5c8 Mon Sep 17 00:00:00 2001
e54a86
From: Ethan Lee <flibitijibibo@gmail.com>
e54a86
Date: Tue, 25 Jan 2022 13:07:00 -0500
e54a86
Subject: [PATCH 06/11] wayland: Call SetFullscreen directly in ShowWindow.
e54a86
e54a86
This cuts out an extra flush when getting the first configure event.
e54a86
---
e54a86
 src/video/wayland/SDL_waylandwindow.c | 4 ++--
e54a86
 1 file changed, 2 insertions(+), 2 deletions(-)
e54a86
e54a86
diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
e54a86
index 2bf500a91..d4b89de7a 100644
e54a86
--- a/src/video/wayland/SDL_waylandwindow.c
e54a86
+++ b/src/video/wayland/SDL_waylandwindow.c
e54a86
@@ -778,8 +778,8 @@ void Wayland_ShowWindow(_THIS, SDL_Window *window)
e54a86
          * libdecor will call this as part of their configure event!
e54a86
          * -flibit
e54a86
          */
e54a86
-        Wayland_SetWindowFullscreen(_this, window, SDL_GetDisplayForWindow(window),
e54a86
-                                    (window->flags & SDL_WINDOW_FULLSCREEN) != 0);
e54a86
+        SDL_WaylandOutputData *odata = SDL_GetDisplayForWindow(window)->driverdata;
e54a86
+        SetFullscreen(window, (window->flags & SDL_WINDOW_FULLSCREEN) ? odata->output : NULL);
e54a86
         if (data->shell_surface.xdg.surface) {
e54a86
             while (!data->shell_surface.xdg.initial_configure_seen) {
e54a86
                 WAYLAND_wl_display_flush(c->display);
e54a86
-- 
e54a86
2.34.1
e54a86