[gtk+] gtkwindow: Use shadow border when calculating resize areas positions



commit 6b4dd4be6c4581556e9fa76c96170128415cd9c3
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Dec 9 17:33:44 2017 +0100

    gtkwindow: Use shadow border when calculating resize areas positions
    
    This way resize areas are correctly positioned right outside the visible
    window edge on all sides.

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index aba18df..260e61b 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1732,7 +1732,7 @@ edge_under_coordinates (GtkWindow     *window,
     {
       handle_h = MIN (RESIZE_HANDLE_SIZE, allocation.width / 2);
       handle_v = MIN (RESIZE_HANDLE_SIZE, allocation.height / 2);
-      gtk_style_context_get_margin (context, &border);
+      get_shadow_width (window, &border);
     }
   else
     {


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