wayland: Fix non-floating libdecor window sizing

main
Frank Praznik 2023-02-03 11:07:31 -05:00
parent 9f21bed729
commit 0bf91e16b7
1 changed files with 1 additions and 1 deletions

View File

@ -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 */