wayland/xdg-shell: Correct window menu position in logical layout mode

Fixes https://gitlab.gnome.org/GNOME/mutter/issues/527
This commit is contained in:
Jan Alexander Steffens (heftig) 2019-03-26 22:24:44 +01:00
parent 58f7059ea4
commit 28e0a7bfb5
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ zxdg_toplevel_v6_show_window_menu (struct wl_client *client,
if (!meta_wayland_seat_get_grab_info (seat, surface, serial, FALSE, NULL, NULL))
return;
monitor_scale = window->monitor->scale;
monitor_scale = meta_window_wayland_get_geometry_scale (window);
meta_window_show_menu (window, META_WINDOW_MENU_WM,
window->buffer_rect.x + (x * monitor_scale),
window->buffer_rect.y + (y * monitor_scale));

View File

@ -264,7 +264,7 @@ xdg_toplevel_show_window_menu (struct wl_client *client,
if (!meta_wayland_seat_get_grab_info (seat, surface, serial, FALSE, NULL, NULL))
return;
monitor_scale = window->monitor->scale;
monitor_scale = meta_window_wayland_get_geometry_scale (window);
meta_window_show_menu (window, META_WINDOW_MENU_WM,
window->buffer_rect.x + (x * monitor_scale),
window->buffer_rect.y + (y * monitor_scale));