aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-07-31 14:33:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-08-07 14:53:19 +0000
commit698c5b54f32c885304d5e2ff55580ce7f52b5da7 (patch)
treea8020d0903f63bc7f1bc85ca3f97c32edfb1be1b /terminal.c
parentwayland: fractional-scale-v1 is now always available (diff)
wayland: cursor-shape-v1 is now always available
Since we're requiring wayland-protocols >= 1.32
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/terminal.c b/terminal.c
index bbc98efc..2f81adc8 100644
--- a/terminal.c
+++ b/terminal.c
@@ -3176,12 +3176,8 @@ term_xcursor_update_for_seat(struct terminal *term, struct seat *seat)
if (seat->pointer.hidden)
shape = CURSOR_SHAPE_HIDDEN;
-#if defined(HAVE_CURSOR_SHAPE)
- else if (cursor_string_to_server_shape(term->mouse_user_cursor) != 0
-#else
- else if (false
-#endif
- || render_xcursor_is_valid(seat, term->mouse_user_cursor))
+ else if (cursor_string_to_server_shape(term->mouse_user_cursor) != 0 ||
+ render_xcursor_is_valid(seat, term->mouse_user_cursor))
{
shape = CURSOR_SHAPE_CUSTOM;
}