diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-23 12:28:15 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-23 12:28:15 +0200 |
commit | ffd4f8b60aedd498d909dd3c479f6a0b2897d3cc (patch) | |
tree | eea9463eb63642eb270ca99a1c926f33af2ec959 /swaybar/input.c | |
parent | Use wlr_cursor_unset_image() (diff) | |
download | sway-default-xcursor.tar.gz sway-default-xcursor.tar.zst sway-default-xcursor.zip |
Use "default" XCursor instead of "left_ptr"default-xcursor
"left_ptr" is the legacy XCursor name. "default" is the cursor
spec name.
Diffstat (limited to 'swaybar/input.c')
-rw-r--r-- | swaybar/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/input.c b/swaybar/input.c index 8eccf542..f8f0672e 100644 --- a/swaybar/input.c +++ b/swaybar/input.c | |||
@@ -82,7 +82,7 @@ void update_cursor(struct swaybar_seat *seat) { | |||
82 | pointer->cursor_theme = wl_cursor_theme_load( | 82 | pointer->cursor_theme = wl_cursor_theme_load( |
83 | cursor_theme, cursor_size * scale, seat->bar->shm); | 83 | cursor_theme, cursor_size * scale, seat->bar->shm); |
84 | struct wl_cursor *cursor; | 84 | struct wl_cursor *cursor; |
85 | cursor = wl_cursor_theme_get_cursor(pointer->cursor_theme, "left_ptr"); | 85 | cursor = wl_cursor_theme_get_cursor(pointer->cursor_theme, "default"); |
86 | pointer->cursor_image = cursor->images[0]; | 86 | pointer->cursor_image = cursor->images[0]; |
87 | wl_surface_set_buffer_scale(pointer->cursor_surface, scale); | 87 | wl_surface_set_buffer_scale(pointer->cursor_surface, scale); |
88 | wl_surface_attach(pointer->cursor_surface, | 88 | wl_surface_attach(pointer->cursor_surface, |