diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-07-13 14:09:44 +0200 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2020-11-27 15:14:33 +0000 |
commit | 00cbcb7ba1d40f415711890fa0cb1dce5f752581 (patch) | |
tree | 6e4654c32970ac27ea5b26525ea7fe10972e49b8 /src/backends/x11/meta-cursor-tracker-x11.c | |
parent | a8e293522517fad1b1b9ef0139fe120f6675b8f3 (diff) | |
download | mutter-00cbcb7ba1d40f415711890fa0cb1dce5f752581.tar.gz |
core: Centralize cursor renderer and tracker updates
These use now more of a "pull" model, where they receive update
notifications and the relevant input position is queried, instead
of the coordinates being passed along.
This allows to treat cursor renderers all the same independently
of the device they track. This notifying of position changes should
ideally be more backend-y than core-y, a better location will be
figured out in future commits.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1403>
Diffstat (limited to 'src/backends/x11/meta-cursor-tracker-x11.c')
-rw-r--r-- | src/backends/x11/meta-cursor-tracker-x11.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backends/x11/meta-cursor-tracker-x11.c b/src/backends/x11/meta-cursor-tracker-x11.c index 1e6c39e71..7355f828e 100644 --- a/src/backends/x11/meta-cursor-tracker-x11.c +++ b/src/backends/x11/meta-cursor-tracker-x11.c @@ -69,10 +69,8 @@ static void update_position (MetaCursorTrackerX11 *tracker_x11) { MetaCursorTracker *tracker = META_CURSOR_TRACKER (tracker_x11); - graphene_point_t point; - meta_cursor_tracker_get_pointer (tracker, &point, NULL); - meta_cursor_tracker_update_position (tracker, point.x, point.y); + meta_cursor_tracker_invalidate_position (tracker); } static gboolean |