summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2017-12-09 17:32:02 +0100
committerCarlos Garnacho <carlosg@gnome.org>2017-12-09 17:32:02 +0100
commitf6ef18ac74bb4a6edd2ce63ce9b66485c0a0adb8 (patch)
tree6a65bcd11346ef6fa9da40ae15ce070a76761b4d /gtk/gtkwindow.c
parentd872640927e501caa7dc0b87c0eaadc5fb33b648 (diff)
downloadgtk+-f6ef18ac74bb4a6edd2ce63ce9b66485c0a0adb8.tar.gz
gtkwindow: Do not account handle size when checking content area
This is necessary to bring back the L-shaped resize corners. On all edges (not corners) the handle width is determined by the border size.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 9396dfc938..aba18df012 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1744,10 +1744,10 @@ edge_under_coordinates (GtkWindow *window,
gtk_style_context_restore (context);
/* Check whether the click falls outside the handle area */
- if (x >= allocation.x + border.left + handle_h &&
- x < allocation.x + allocation.width - border.right - handle_h &&
- y >= allocation.y + border.top + handle_v &&
- y < allocation.y + allocation.height - border.bottom - handle_v)
+ if (x >= allocation.x + border.left &&
+ x < allocation.x + allocation.width - border.right &&
+ y >= allocation.y + border.top &&
+ y < allocation.y + allocation.height - border.bottom)
return FALSE;
/* Check X axis */