From e6401e602500703d26f00b632b0a75681691f2eb Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 20 Oct 2021 09:09:51 +0200 Subject: [PATCH] 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 Reviewed-by: Simon Ser Reviewed-by: Carlos Garnacho --- hw/xwayland/xwayland-cursor.c | 6 +++--- 1 file 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; }