config: add 'indicate-when-selecting'

This allows disabling the caret style mouse cursor when the Shift key
is held.
This commit is contained in:
Craig Barnes 2020-08-03 01:53:16 +01:00
parent 91da76656c
commit 7422719e5b
6 changed files with 13 additions and 2 deletions

View file

@ -2213,7 +2213,7 @@ term_xcursor_update_for_seat(struct terminal *term, struct seat *seat)
const char *xcursor
= seat->pointer.hidden ? XCURSOR_HIDDEN
: term->is_searching ? XCURSOR_LEFT_PTR
: selection_enabled(term, seat) ? XCURSOR_TEXT
: (selection_enabled(term, seat) && term->conf->cursor.indicate_when_selecting) ? XCURSOR_TEXT
: XCURSOR_LEFT_PTR;
render_xcursor_set(seat, term, xcursor);