mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
cursor.c: rebase cursor when exiting interactive mode
cursor_rebase() sets the cursor icon and sends a motion-event to the surface below the cursor. It is made public in anticipation of using it in various view_* functions.
This commit is contained in:
parent
1c831bc051
commit
afa299c080
2 changed files with 35 additions and 1 deletions
|
|
@ -424,6 +424,18 @@ struct view *desktop_surface_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
|
||||
*/
|
||||
void cursor_rebase(struct seat *seat, uint32_t time_msec);
|
||||
|
||||
/**
|
||||
* cursor_set - set cursor icon
|
||||
* @seat - current seat
|
||||
* @cursor_name - name of cursor, for example "left_ptr" or "grab"
|
||||
*/
|
||||
void cursor_set(struct seat *seat, const char *cursor_name);
|
||||
void cursor_init(struct seat *seat);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue