diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2021-10-20 09:09:51 +0200 |
---|---|---|
committer | Olivier Fourdan <fourdan@gmail.com> | 2021-10-25 12:05:42 +0000 |
commit | e6401e602500703d26f00b632b0a75681691f2eb (patch) | |
tree | 3ef7c12feaf1d941accc849a895f6532bc574ef4 /hw/xwayland/xwayland-cursor.c | |
parent | ccffe90c3646a677c11e7305d9aefc7e51ef8c81 (diff) |
xwayland: Rename xwl_seat_update_cursor()
Two different functions in xwayland-cursor.c and xwayland-input.c use
the same name xwl_seat_update_cursor() which is confusing when reading
the code.
Rename xwl_seat_update_cursor() to xwl_seat_update_all_cursors() in
xwayland-cursor.c to help with readability of the code.
No functional change.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Carlos Garnacho <carlosg@gnome.org>
Diffstat (limited to 'hw/xwayland/xwayland-cursor.c')
-rw-r--r-- | hw/xwayland/xwayland-cursor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xwayland/xwayland-cursor.c b/hw/xwayland/xwayland-cursor.c index c4457cc2a..be9fa3b28 100644 --- a/hw/xwayland/xwayland-cursor.c +++ b/hw/xwayland/xwayland-cursor.c @@ -265,7 +265,7 @@ xwl_tablet_tool_set_cursor(struct xwl_tablet_tool *xwl_tablet_tool) } static void -xwl_seat_update_cursor(struct xwl_seat *xwl_seat) +xwl_seat_update_all_cursors(struct xwl_seat *xwl_seat) { struct xwl_tablet_tool *xwl_tablet_tool; @@ -285,7 +285,7 @@ xwl_seat_update_cursor_visibility(struct xwl_seat *xwl_seat) { xwl_seat->x_cursor = xwl_seat->pending_x_cursor; xwl_seat_cursor_visibility_changed(xwl_seat); - xwl_seat_update_cursor(xwl_seat); + xwl_seat_update_all_cursors(xwl_seat); } static void @@ -339,7 +339,7 @@ xwl_set_cursor(DeviceIntPtr device, /* Cursor remains shown or hidden, apply the change immediately */ xwl_set_cursor_free_timer(xwl_seat); xwl_seat->x_cursor = cursor; - xwl_seat_update_cursor(xwl_seat); + xwl_seat_update_all_cursors(xwl_seat); return; } |