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
..
2018-11-06 17:17:36 +01:00
2014-09-12 11:55:08 -06:00
2021-02-22 13:52:27 +01:00
2019-10-21 14:04:30 +00:00
2021-07-07 21:03:26 +02:00
2021-07-07 21:03:26 +02:00
2019-01-22 18:31:53 +01:00
2019-01-22 18:31:53 +01:00
2021-08-22 16:40:42 +00:00
2021-08-22 16:40:42 +00:00
2021-02-22 13:52:27 +01:00