mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 11:00:54 -05:00
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:
parent
58f7059ea4
commit
28e0a7bfb5
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user