Commit e5f9fae034df8ca305241c5a666e7702fcf9958f

Christian Rauch 2021-05-16T23:19:45

wayland: don't flush after setting fullscreen

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index 960e3c9..c18e159 100644
--- a/src/video/wayland/SDL_waylandwindow.c
+++ b/src/video/wayland/SDL_waylandwindow.c
@@ -133,8 +133,6 @@ SetFullscreen(SDL_Window *window, struct wl_output *output)
             wl_shell_surface_set_toplevel(wind->shell_surface.wl);
         }
     }
-
-    WAYLAND_wl_display_flush(viddata->display);
 }
 
 /* On modern desktops, we probably will use the xdg-shell protocol instead