backends/native: Fix atomic cursor plane assign
Make atomic cursor plane assignment not depending on cursor hotspot support. Fixes: 4b9d1271a ("backends/native: Add PLANE_PROP_HOTSPOT_[X,Y]") Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3238 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3503>
This commit is contained in:
parent
133adc6fb4
commit
1a0d00467d
@ -405,13 +405,14 @@ maybe_update_cursor_plane (MetaKmsCursorManagerImpl *cursor_manager_impl,
|
||||
.height = round (cursor_rect.size.height),
|
||||
};
|
||||
|
||||
plane_assignment = meta_kms_update_assign_plane (update,
|
||||
crtc, cursor_plane,
|
||||
buffer,
|
||||
src_rect, dst_rect,
|
||||
assign_plane_flags);
|
||||
|
||||
if (meta_kms_plane_supports_cursor_hotspot (cursor_plane))
|
||||
{
|
||||
plane_assignment = meta_kms_update_assign_plane (update,
|
||||
crtc, cursor_plane,
|
||||
buffer,
|
||||
src_rect, dst_rect,
|
||||
assign_plane_flags);
|
||||
meta_kms_plane_assignment_set_cursor_hotspot (plane_assignment,
|
||||
(int) roundf (hotspot->x),
|
||||
(int) roundf (hotspot->y));
|
||||
|
Loading…
x
Reference in New Issue
Block a user