aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-30 11:01:40 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-30 11:01:40 +0000
commitc8d94931e63010bdfb86cfa68b5f6f7c2b68d3e7 (patch)
tree1bb45d8e55a1f35198677abe96b0c89e975daf2e /terminal.c
parentselection: forced selection requires keyboard focus (diff)
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.
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c3
1 files changed, 1 insertions, 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);