mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
cursor-shape: use server-side cursors for custom (OSC-22), if possible
Using a lookup table, try to map the user-provided xcursor string to a cursor-shape-v1 known shape. If we succeed, set the user’s custom cursor using server side cursors (i.e. using cursor-shape-v1). If not, fallback to trying to load the image ourselves (using wl_cursor_theme_get_cursor()), and set it using the legacy wl_pointer_set_cursor().
This commit is contained in:
parent
bf83a0b2bd
commit
c2baaff3c1
6 changed files with 141 additions and 32 deletions
|
|
@ -159,6 +159,8 @@ struct seat {
|
|||
float scale;
|
||||
bool hidden;
|
||||
enum cursor_shape shape;
|
||||
char *last_custom_xcursor;
|
||||
|
||||
struct wl_callback *xcursor_callback;
|
||||
bool xcursor_pending;
|
||||
} pointer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue