From c8d94931e63010bdfb86cfa68b5f6f7c2b68d3e7 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 30 Nov 2019 12:01:40 +0100 Subject: term: xcursor: use selection_enabled() Instead of duplicating the code from selection_enabled() that deals with forced selection, just call selection_enabled(). This was previously not possible since selection_enabled() didn't require keyboard_focus. Now it does. --- terminal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/terminal.c b/terminal.c index ca03a0bd..53034dea 100644 --- a/terminal.c +++ b/terminal.c @@ -1436,8 +1436,7 @@ term_xcursor_update(struct terminal *term) { term->xcursor = term->is_searching ? "left_ptr" : - term->mouse_tracking == MOUSE_NONE ? "text" : - term->wl->focused == term && term->wl->kbd.shift ? "text" : + selection_enabled(term) ? "text" : "hand2"; wayl_cursor_set(term->wl, term); -- cgit v1.3