From 0bf91e16b7e11ee04f040142ebe1a5a0263b469d Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Fri, 3 Feb 2023 11:07:31 -0500 Subject: [PATCH] wayland: Fix non-floating libdecor window sizing --- src/video/wayland/SDL_waylandwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index 5519a7975..5282554c3 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -794,7 +794,7 @@ static void decoration_frame_configure(struct libdecor_frame *frame, * * https://gitlab.gnome.org/jadahl/libdecor/-/issues/40 */ - const SDL_bool use_cached_size = (floating != wind->floating) || + const SDL_bool use_cached_size = (floating && !wind->floating) || (window->is_hiding || !!(window->flags & SDL_WINDOW_HIDDEN)); /* This will never set 0 for width/height unless the function returns false */