aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2023-06-23 12:28:15 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2023-06-25 22:38:10 +0200
commit974a8629a8f0f403028332543e4bd31d98f611c1 (patch)
treec2ea62de5a96a6bce7502542013b520331a79c6c /sway/input/seat.c
parentswaybar: remove the argument of StatusNotifierHostRegistered (diff)
downloadsway-974a8629a8f0f403028332543e4bd31d98f611c1.tar.gz
sway-974a8629a8f0f403028332543e4bd31d98f611c1.tar.zst
sway-974a8629a8f0f403028332543e4bd31d98f611c1.zip
Use "default" XCursor instead of "left_ptr"
"left_ptr" is the legacy XCursor name. "default" is the cursor spec name.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index fdd21057..82f4eb5f 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -671,7 +671,7 @@ static void seat_update_capabilities(struct sway_seat *seat) {
671 } else { 671 } else {
672 wlr_seat_set_capabilities(seat->wlr_seat, caps); 672 wlr_seat_set_capabilities(seat->wlr_seat, caps);
673 if ((previous_caps & WL_SEAT_CAPABILITY_POINTER) == 0) { 673 if ((previous_caps & WL_SEAT_CAPABILITY_POINTER) == 0) {
674 cursor_set_image(seat->cursor, "left_ptr", NULL); 674 cursor_set_image(seat->cursor, "default", NULL);
675 } 675 }
676 } 676 }
677} 677}
@@ -1039,7 +1039,7 @@ void seat_configure_xcursor(struct sway_seat *seat) {
1039 1039
1040 wlr_xcursor_manager_load(server.xwayland.xcursor_manager, 1); 1040 wlr_xcursor_manager_load(server.xwayland.xcursor_manager, 1);
1041 struct wlr_xcursor *xcursor = wlr_xcursor_manager_get_xcursor( 1041 struct wlr_xcursor *xcursor = wlr_xcursor_manager_get_xcursor(
1042 server.xwayland.xcursor_manager, "left_ptr", 1); 1042 server.xwayland.xcursor_manager, "default", 1);
1043 if (xcursor != NULL) { 1043 if (xcursor != NULL) {
1044 struct wlr_xcursor_image *image = xcursor->images[0]; 1044 struct wlr_xcursor_image *image = xcursor->images[0];
1045 wlr_xwayland_set_cursor( 1045 wlr_xwayland_set_cursor(
@@ -1082,7 +1082,7 @@ void seat_configure_xcursor(struct sway_seat *seat) {
1082 1082
1083 // Reset the cursor so that we apply it to outputs that just appeared 1083 // Reset the cursor so that we apply it to outputs that just appeared
1084 cursor_set_image(seat->cursor, NULL, NULL); 1084 cursor_set_image(seat->cursor, NULL, NULL);
1085 cursor_set_image(seat->cursor, "left_ptr", NULL); 1085 cursor_set_image(seat->cursor, "default", NULL);
1086 wlr_cursor_warp(seat->cursor->cursor, NULL, seat->cursor->cursor->x, 1086 wlr_cursor_warp(seat->cursor->cursor, NULL, seat->cursor->cursor->x,
1087 seat->cursor->cursor->y); 1087 seat->cursor->cursor->y);
1088} 1088}