diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-12-01 19:04:01 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-12-01 19:04:01 +0000 |
| commit | 1619e83c13875f71f79e5ca0e4504dd59dd81d79 (patch) | |
| tree | 17dba0beb3ca0c9c05d9365d40aed28b28d644ac /doc | |
| parent | input: fix debug log format specifier; ‘count’ is a size_t (diff) | |
input: always update the xcursor shape in pointer enter/motion events
Now that term_xcursor_update_for_seat() takes the current surface into
account (i.e. doesn’t assume the cursor is over the main grid),
there’s no longer any need to call render_xcursor_set() directly.
Thus, we can simply call term_xcursor_update_for_seat() on **all**
pointer enter and motion events. As long as we take care to update the
internal state to reflect the, possibly new, current surface before
doing so.
Also make sure to **always** reset the seat’s “current” xcursor
pointer on pointer leave events. This is done without actually sending
anything to the compositor, but is necessary to ensure that we *do*
send a request to update the xcursor on the next pointer enter event.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
