wayland: Bail early if tablet tool cursor shape doesn't change

No need to call meta_wayland_tablet_tool_update_cursor_surface in that
case.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4371>
This commit is contained in:
Michel Dänzer
2025-03-27 17:57:13 +01:00
committed by Bruce Leidl
parent 830836f72c
commit 9f594f63aa

View File

@@ -201,6 +201,10 @@ meta_wayland_tablet_tool_set_cursor_shape (MetaWaylandTabletTool *tool,
meta_wayland_surface_update_outputs (tool->cursor_surface);
wl_list_remove (&tool->cursor_surface_destroy_listener.link);
}
else if (tool->cursor_shape == shape)
{
return;
}
tool->cursor_surface = NULL;
tool->cursor_shape = shape;