[mutter/wayland] wayland-surface: Correct xdg_popup placement



commit 47f4c9db7baa091f720bb26e517c5750b73b50e6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Feb 18 18:55:54 2014 -0500

    wayland-surface: Correct xdg_popup placement
    
    Now that we call set_custom_frame_extents, the frame rect corresponds
    to the "visible window geometry" used for constrainment, while the
    x/y fields in get_xdg_popup instead are relative to the surface.

 src/wayland/meta-wayland-surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index 192e6e3..2638aa0 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -1020,7 +1020,7 @@ xdg_shell_get_xdg_popup (struct wl_client *client,
   if (parent_surf == NULL || parent_surf->window == NULL)
     return;
 
-  meta_window_get_frame_rect (parent_surf->window, &parent_rect);
+  meta_window_get_rect (parent_surf->window, &parent_rect);
 
   if (!create_surface_extension (&surface->xdg_popup, client, surface_resource, resource, id,
                                  META_XDG_POPUP_VERSION,


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