[gtk+] wayland: Fix south-west anchor rect calculation



commit 50e33308db37bd4565efdda7c6d42c1a274b56e1
Author: Jonas Ådahl <jadahl gmail com>
Date:   Mon Sep 12 15:01:24 2016 +0800

    wayland: Fix south-west anchor rect calculation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771117

 gdk/wayland/gdkwindow-wayland.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index d8a6355..77fb4a8 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);


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