summaryrefslogtreecommitdiff
path: root/hw/xwayland/xwayland-cursor.c
diff options
context:
space:
mode:
authorOlivier Fourdan <ofourdan@redhat.com>2021-10-20 09:09:51 +0200
committerOlivier Fourdan <fourdan@gmail.com>2021-10-25 12:05:42 +0000
commite6401e602500703d26f00b632b0a75681691f2eb (patch)
tree3ef7c12feaf1d941accc849a895f6532bc574ef4 /hw/xwayland/xwayland-cursor.c
parentccffe90c3646a677c11e7305d9aefc7e51ef8c81 (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.c6
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;
}