mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 16:40:41 -05:00
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:
parent
c462544f78
commit
d78585d68a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user