expose process_cursor_motion publicly

This commit is contained in:
bi4k8 2021-12-14 03:16:16 +00:00
parent fd7f06a375
commit f583fac28f
2 changed files with 9 additions and 1 deletions

View file

@ -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);

View file

@ -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;