Carlos Garnacho eda7588190 backends: Replace MetaCursorSprite::prepare-at with in-place function
Since this signal is in a hot path during input handling, it makes sense
not to have this be a signal at all, currently most of the time spent in
it is in GLib signal machinery itself.

Replace it with a function/user data pair that are set on the sprite
itself. Only the places that create an sprite are interested in hooking
one ::prepare-at behavior per sprite, so we can do with a single pair.

This makes meta_cursor_sprite_prepare_at() inexpensive enough.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1915>
2021-12-07 20:04:08 +00:00
..
2019-03-12 00:27:07 +00:00
2018-11-06 17:17:36 +01:00
2021-07-15 11:25:21 +02:00
2021-05-17 16:08:42 +00:00
2018-11-06 17:17:36 +01:00
2021-11-21 20:53:33 +00:00