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 8907a29912)
This commit is contained in:
Hans de Goede 2019-11-10 16:49:10 +00:00 committed by Jonas Ådahl
parent c462544f78
commit d78585d68a

View File

@ -322,6 +322,7 @@ update_monitor_crtc_cursor (MetaMonitor *monitor,
&crtc_x, &crtc_y); &crtc_x, &crtc_y);
transform = meta_logical_monitor_get_transform (data->in_logical_monitor); 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)) if (meta_monitor_transform_is_rotated (transform))
{ {
crtc_width = monitor_crtc_mode->crtc_mode->height; crtc_width = monitor_crtc_mode->crtc_mode->height;