From 47f4c9db7baa091f720bb26e517c5750b73b50e6 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 18 Feb 2014 18:55:54 -0500 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 192e6e3b6..2638aa0fe 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,