From 8fdd226b8bf259d88084b68283e4936d784a96fa Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Mon, 28 Jul 2014 10:02:52 +0200 Subject: [PATCH] wayland-surface: Fix coordinates for xdg_surface.show_window_menu --- src/wayland/meta-wayland-surface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 57aed653a..99301bc91 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -817,7 +817,9 @@ xdg_surface_show_window_menu (struct wl_client *client, if (!meta_wayland_seat_get_grab_info (seat, surface, serial, NULL, NULL)) return; - meta_window_show_menu (surface->window, META_WINDOW_MENU_WM, x, y); + meta_window_show_menu (surface->window, META_WINDOW_MENU_WM, + surface->window->buffer_rect.x + x, + surface->window->buffer_rect.y + y); } static gboolean