[gtk: 48/88] gtk/window: Minor cleanup




commit b8fa892b70363ae0cb890fc607aa1784dc0b2a30
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Wed Dec 2 16:44:59 2020 +0100

    gtk/window: Minor cleanup

 gtk/gtkwindow.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 75c12a945e..aed818e9ce 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -4303,8 +4303,6 @@ toplevel_compute_size (GdkToplevel     *toplevel,
       gtk_window_get_remembered_size (window, &width, &height);
     }
 
-  get_shadow_width (window, &shadow);
-
   /* Don't ever request zero width or height, it's not supported by
      gdk. The size allocation code will round it to 1 anyway but if
      we do it then the value returned from this function will is
@@ -4312,7 +4310,6 @@ toplevel_compute_size (GdkToplevel     *toplevel,
   width = MAX (width, 1);
   height = MAX (height, 1);
 
-
   gtk_window_update_csd_size (window,
                               &min_width, &min_height,
                               INCLUDE_CSD_SIZE);
@@ -4325,6 +4322,7 @@ toplevel_compute_size (GdkToplevel     *toplevel,
 
   if (priv->use_client_shadow)
     {
+      get_shadow_width (window, &shadow);
       gdk_toplevel_size_set_margin (size,
                                     shadow.left, shadow.right,
                                     shadow.top, shadow.bottom);


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