瀏覽代碼

wayland: Fix non-floating libdecor window sizing

Frank Praznik 2 年之前
父節點
當前提交
0bf91e16b7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/wayland/SDL_waylandwindow.c

+ 1 - 1
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 */