diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 11:01:40 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 11:01:40 +0000 |
| commit | c8d94931e63010bdfb86cfa68b5f6f7c2b68d3e7 (patch) | |
| tree | 1bb45d8e55a1f35198677abe96b0c89e975daf2e | |
| parent | selection: 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.
| -rw-r--r-- | terminal.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |
