diff options
author | Simon Ser <contact@emersion.fr> | 2023-06-23 12:28:15 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-25 22:38:10 +0200 |
commit | 974a8629a8f0f403028332543e4bd31d98f611c1 (patch) | |
tree | c2ea62de5a96a6bce7502542013b520331a79c6c /sway/input/cursor.c | |
parent | swaybar: remove the argument of StatusNotifierHostRegistered (diff) | |
download | sway-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/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index abc6c554..7a4dd19f 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -236,7 +236,7 @@ void cursor_update_image(struct sway_cursor *cursor, | |||
236 | // Try a node's resize edge | 236 | // Try a node's resize edge |
237 | enum wlr_edges edge = find_resize_edge(node->sway_container, NULL, cursor); | 237 | enum wlr_edges edge = find_resize_edge(node->sway_container, NULL, cursor); |
238 | if (edge == WLR_EDGE_NONE) { | 238 | if (edge == WLR_EDGE_NONE) { |
239 | cursor_set_image(cursor, "left_ptr", NULL); | 239 | cursor_set_image(cursor, "default", NULL); |
240 | } else if (container_is_floating(node->sway_container)) { | 240 | } else if (container_is_floating(node->sway_container)) { |
241 | cursor_set_image(cursor, wlr_xcursor_get_resize_name(edge), NULL); | 241 | cursor_set_image(cursor, wlr_xcursor_get_resize_name(edge), NULL); |
242 | } else { | 242 | } else { |
@@ -247,7 +247,7 @@ void cursor_update_image(struct sway_cursor *cursor, | |||
247 | } | 247 | } |
248 | } | 248 | } |
249 | } else { | 249 | } else { |
250 | cursor_set_image(cursor, "left_ptr", NULL); | 250 | cursor_set_image(cursor, "default", NULL); |
251 | } | 251 | } |
252 | } | 252 | } |
253 | 253 | ||