From e2b7b26f28fee143ce5e362276562fe7712be0a4 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 14 May 2014 12:00:30 -0400 Subject: [PATCH] wayland: Use meta_window_move to position xdg_popup windows This makes sure we set the user rect as well, which is necessary to have things not "snap back" to weird locations. --- src/wayland/meta-wayland-surface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 16287ccd0..ff56f92bb 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -1004,8 +1004,9 @@ xdg_shell_get_xdg_popup (struct wl_client *client, } window = meta_window_wayland_new (meta_get_display (), surface); - window->rect.x = parent_surf->window->rect.x + x; - window->rect.y = parent_surf->window->rect.y + y; + meta_window_move (window, FALSE, + parent_surf->window->rect.x + x, + parent_surf->window->rect.y + y); window->showing_for_first_time = FALSE; window->placed = TRUE; meta_window_set_transient_for (window, parent_surf->window);