[gtk+] wayland: Position popups relative to the parent surface



commit 0f47d1bac4e859fd99fac30b41f3523cb5db7f7e
Author: Jonas Ådahl <jadahl gmail com>
Date:   Fri May 22 16:39:31 2015 +0800

    wayland: Position popups relative to the parent surface
    
    According to the xdg-shell protocol specification the (x, y) coordinates
    passed when creating a popup surface is relative to top left corner of
    the parent surface, but prior to this patch, if the parent surface
    was an xdg_surface, we'd position it relative to top left corner of the
    window geometry of that xdg_surface.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=749717

 gdk/wayland/gdkwindow-wayland.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gdk/wayland/gdkwindow-wayland.c b/gdk/wayland/gdkwindow-wayland.c
index 507013c..19d9224 100644
--- a/gdk/wayland/gdkwindow-wayland.c
+++ b/gdk/wayland/gdkwindow-wayland.c
@@ -1108,12 +1108,6 @@ gdk_wayland_window_create_xdg_popup (GdkWindow      *window,
   x = window->x - parent_x;
   y = window->y - parent_y;
 
-  if (parent_impl->xdg_surface)
-    {
-      x -= parent_impl->margin_left;
-      y -= parent_impl->margin_top;
-    }
-
   impl->xdg_popup = xdg_shell_get_xdg_popup (display->xdg_shell,
                                              impl->surface,
                                              parent_impl->surface,


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