SDL: commit after setting/unsetting limits

From f20a85818cfc34f9602f081f13222239139a7ede Mon Sep 17 00:00:00 2001
From: Christian Rauch <[EMAIL REDACTED]>
Date: Thu, 29 Jul 2021 00:13:17 +0100
Subject: [PATCH] commit after setting/unsetting limits

---
 src/video/wayland/SDL_waylandwindow.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index 7f0f0702b..dc865bb2c 100644
--- a/src/video/wayland/SDL_waylandwindow.c
+++ b/src/video/wayland/SDL_waylandwindow.c
@@ -113,6 +113,7 @@ SetFullscreen(SDL_Window *window, struct wl_output *output)
             if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
                 /* ensure that window is resizable before going into fullscreen */
                 libdecor_frame_set_capabilities(wind->shell_surface.libdecor.frame, LIBDECOR_ACTION_RESIZE);
+                wl_surface_commit(wind->surface);
             }
             libdecor_frame_set_fullscreen(wind->shell_surface.libdecor.frame, output);
         } else {
@@ -120,6 +121,7 @@ SetFullscreen(SDL_Window *window, struct wl_output *output)
             if (!(window->flags & SDL_WINDOW_RESIZABLE)) {
                 /* restore previous RESIZE capability */
                 libdecor_frame_unset_capabilities(wind->shell_surface.libdecor.frame, LIBDECOR_ACTION_RESIZE);
+                wl_surface_commit(wind->surface);
             }
         }
     } else