[gtk/resizing-fixes] broadway: Use shadow size from GtkToplevelSize



commit 19d60d72342b0ddc54b00272818ce8b864c41573
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Aug 12 08:16:19 2020 -0400

    broadway: Use shadow size from GtkToplevelSize

 gdk/broadway/gdksurface-broadway.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gdk/broadway/gdksurface-broadway.c b/gdk/broadway/gdksurface-broadway.c
index 7f5f9a79e4..56503b9db9 100644
--- a/gdk/broadway/gdksurface-broadway.c
+++ b/gdk/broadway/gdksurface-broadway.c
@@ -1555,10 +1555,12 @@ gdk_broadway_toplevel_present (GdkToplevel       *toplevel,
 
   gdk_toplevel_size_init (&size, bounds_width, bounds_height);
   gdk_toplevel_notify_compute_size (toplevel, &size);
-  g_warn_if_fail (size.width > 0);
-  g_warn_if_fail (size.height > 0);
   width = size.width;
   height = size.height;
+  surface->shadow_left = size.shadow_left;
+  surface->shadow_right = size.shadow_right;
+  surface->shadow_top = size.shadow_top;
+  surface->shadow_bottom = size.shadow_bottom;
 
   if (gdk_toplevel_layout_get_resizable (layout))
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]