summarylogtreecommitdiffstats
path: root/0001-wayland-xdg-shell-Correct-window-menu-position-in-lo.patch
diff options
context:
space:
mode:
authorTérence Clastres2019-03-27 15:16:30 +0100
committerTérence Clastres2019-03-27 15:34:36 +0100
commitbb1b83f79510ae226231d0557d5679030e014f1a (patch)
treef38d9d41a58124139970ad32a7569376cd863200 /0001-wayland-xdg-shell-Correct-window-menu-position-in-lo.patch
parent179389767c93e0f7ea330d848295d95d6740cd26 (diff)
downloadaur-bb1b83f79510ae226231d0557d5679030e014f1a.tar.gz
Sync with [extra]
Diffstat (limited to '0001-wayland-xdg-shell-Correct-window-menu-position-in-lo.patch')
-rw-r--r--0001-wayland-xdg-shell-Correct-window-menu-position-in-lo.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/0001-wayland-xdg-shell-Correct-window-menu-position-in-lo.patch b/0001-wayland-xdg-shell-Correct-window-menu-position-in-lo.patch
new file mode 100644
index 000000000000..47390ba3a7fb
--- /dev/null
+++ b/0001-wayland-xdg-shell-Correct-window-menu-position-in-lo.patch
@@ -0,0 +1,42 @@
+From da01a3eaffe01ae2c3ea826171057548c7973c39 Mon Sep 17 00:00:00 2001
+Message-Id: <da01a3eaffe01ae2c3ea826171057548c7973c39.1553635567.git.jan.steffens@gmail.com>
+From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
+Date: Tue, 26 Mar 2019 22:24:44 +0100
+Subject: [PATCH] wayland/xdg-shell: Correct window menu position in logical
+ layout mode
+
+Fixes https://gitlab.gnome.org/GNOME/mutter/issues/527
+---
+ src/wayland/meta-wayland-legacy-xdg-shell.c | 2 +-
+ src/wayland/meta-wayland-xdg-shell.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/wayland/meta-wayland-legacy-xdg-shell.c b/src/wayland/meta-wayland-legacy-xdg-shell.c
+index 1523481d4..823064177 100644
+--- a/src/wayland/meta-wayland-legacy-xdg-shell.c
++++ b/src/wayland/meta-wayland-legacy-xdg-shell.c
+@@ -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));
+diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c
+index d747f5c07..fa0207a03 100644
+--- a/src/wayland/meta-wayland-xdg-shell.c
++++ b/src/wayland/meta-wayland-xdg-shell.c
+@@ -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));
+--
+2.21.0
+