From f583fac28f5b7c46fd1f447c4bf0f89cf1483d12 Mon Sep 17 00:00:00 2001 From: bi4k8 Date: Tue, 14 Dec 2021 03:16:16 +0000 Subject: [PATCH] expose process_cursor_motion publicly --- include/labwc.h | 8 ++++++++ src/cursor.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/labwc.h b/include/labwc.h index d649e09e..62f2c040 100644 --- a/include/labwc.h +++ b/include/labwc.h @@ -440,6 +440,14 @@ void cursor_rebase(struct seat *seat, uint32_t time_msec); */ void cursor_set(struct seat *seat, const char *cursor_name); void cursor_init(struct seat *seat); +/** + * process_cursor_motion - update cursor icon for and send enter events for + * surface below the cursor. This function should be called any time the surface + * under the cursor may have changed. + * @seat - current seat + * @time - time now + */ +void process_cursor_motion(struct server *server, uint32_t time); void keyboard_init(struct seat *seat); diff --git a/src/cursor.c b/src/cursor.c index 78ad2389..d5a08202 100644 --- a/src/cursor.c +++ b/src/cursor.c @@ -166,7 +166,7 @@ input_inhibit_blocks_surface(struct seat *seat, struct wl_resource *resource) inhibiting_client != wl_resource_get_client(resource); } -static void +void process_cursor_motion(struct server *server, uint32_t time) { static bool cursor_name_set_by_server;