Commit 7be970db312d2a095696d7bc57143f3fb47fdca3

Ethan Lee 2021-08-06T19:51:27

wayland: Avoid setting floating width/height when re-entering fullscreen

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c
index 0003abe..025dd30 100644
--- a/src/video/wayland/SDL_waylandwindow.c
+++ b/src/video/wayland/SDL_waylandwindow.c
@@ -347,6 +347,7 @@ decoration_frame_configure(struct libdecor_frame *frame,
             /* We might need to re-enter fullscreen after being restored from minimized */
             SetFullscreen(window, driverdata->output);
             fullscreen = SDL_TRUE;
+            floating = SDL_FALSE;
         }
 
         /* Always send a maximized/restore event; if the event is redundant it will