mirror of
https://github.com/labwc/labwc.git
synced 2025-10-31 22:25:34 -04:00
cursor: add cursor_update_focus()
...and call it from desktop_move_to_front() in order force an enter event on the surface below the cursor when cycling views. Fixes #162 and #225 Inspired by PR #164 - just restructured it a bit. Suggested-by: @bi4k8 Co-authored-by: Consolatis <35009135+Consolatis@users.noreply.github.com>
This commit is contained in:
parent
841b6550a9
commit
ce38d2dbd6
3 changed files with 23 additions and 1 deletions
|
|
@ -479,6 +479,14 @@ void cursor_rebase(struct seat *seat, uint32_t time_msec);
|
|||
*/
|
||||
void cursor_set(struct seat *seat, const char *cursor_name);
|
||||
|
||||
/**
|
||||
* cursor_update_focus - update cursor focus
|
||||
* @server - server
|
||||
* Use it to force an update of the cursor icon and to send an enter event
|
||||
* to the surface below the cursor.
|
||||
*/
|
||||
void cursor_update_focus(struct server *server);
|
||||
|
||||
void cursor_init(struct seat *seat);
|
||||
void cursor_finish(struct seat *seat);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue