cursor: Make cursor_rebase() private

Also allow to re-use node, surface, sx and sy.
This commit is contained in:
Consolatis 2022-09-08 01:07:55 +02:00
parent 601a6250b7
commit f057235a1f
2 changed files with 31 additions and 27 deletions

View file

@ -521,14 +521,6 @@ struct view *desktop_node_and_view_at(struct server *server, double lx,
struct view *desktop_view_at_cursor(struct server *server);
/**
* cursor_rebase - set cursor icon for and send motion-event to surface below it
* @seat - current seat
* @time_msec - time now
* @force - disable check for skipping already focused surface
*/
void cursor_rebase(struct seat *seat, uint32_t time_msec, bool force);
/**
* cursor_set - set cursor icon
* @seat - current seat
@ -537,7 +529,7 @@ void cursor_rebase(struct seat *seat, uint32_t time_msec, bool force);
void cursor_set(struct seat *seat, const char *cursor_name);
/**
* cursor_update_focus - update cursor focus
* cursor_update_focus - update cursor focus, may update the cursor icon
* @server - server
* Use it to force an update of the cursor icon and to send an enter event
* to the surface below the cursor.