summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2016-09-12 15:01:24 +0800
committerJonas Ådahl <jadahl@gmail.com>2016-09-14 11:29:32 +0800
commit50e33308db37bd4565efdda7c6d42c1a274b56e1 (patch)
tree824333ca50391800bd9b9cff8933eae385c59e2c /gdk
parent4d2c0a843a1278c159e0a880c5c180c180a4b2fc (diff)
downloadgtk+-50e33308db37bd4565efdda7c6d42c1a274b56e1.tar.gz
wayland: Fix south-west anchor rect calculation
https://bugzilla.gnome.org/show_bug.cgi?id=771117
Diffstat (limited to 'gdk')
-rw-r--r--gdk/wayland/gdkwindow-wayland.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index d8a6355e3f..77fb4a8a25 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1675,7 +1675,7 @@ calculate_popup_rect (GdkWindow *window,
break;
case GDK_GRAVITY_SOUTH_WEST:
x = anchor_rect.x;
- y = anchor_rect.y + (anchor_rect.height / 2);
+ y = anchor_rect.y + anchor_rect.height;
break;
case GDK_GRAVITY_SOUTH:
x = anchor_rect.x + (anchor_rect.width / 2);