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
This commit is contained in:
parent
a5f986259f
commit
8907a29912
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user