From d78585d68a90da0ccc67a58c3327752e9945c4a2 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sun, 10 Nov 2019 16:49:10 +0000 Subject: [PATCH] cursor-renderer/native: Fix cursor drawing in combination with panel_orientation_transform Properly take the panel_orientation_transform into account in update_monitor_crtc_cursor. This fixes us sometimes drawing the cursor on two monitors at the same time as we did not properly swap the crtc width/height when a panel_orientation_transform is active. https://gitlab.gnome.org/GNOME/mutter/merge_requests/927 (cherry picked from commit 8907a299127be21169aba05ab1751c66c6d36754) --- src/backends/native/meta-cursor-renderer-native.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backends/native/meta-cursor-renderer-native.c b/src/backends/native/meta-cursor-renderer-native.c index 34e6f09c9..e4b88e0c7 100644 --- a/src/backends/native/meta-cursor-renderer-native.c +++ b/src/backends/native/meta-cursor-renderer-native.c @@ -322,6 +322,7 @@ update_monitor_crtc_cursor (MetaMonitor *monitor, &crtc_x, &crtc_y); transform = meta_logical_monitor_get_transform (data->in_logical_monitor); + transform = meta_monitor_logical_to_crtc_transform (monitor, transform); if (meta_monitor_transform_is_rotated (transform)) { crtc_width = monitor_crtc_mode->crtc_mode->height;