wayland-surface: Fix coordinates for xdg_surface.show_window_menu

This commit is contained in:
Jasper St. Pierre 2014-07-28 10:02:52 +02:00
parent 6c5595fa9c
commit 8fdd226b8b

View File

@ -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