diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-02-02 08:52:22 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-02-02 08:52:22 +0000 |
| commit | eff8481cdc6c37407faaa3167ea6f6897b12f544 (patch) | |
| tree | 70ec70db35ff9877e83b10a24072947158609a96 /terminal.c | |
| parent | input: don’t execute mouse bindings when the application is grabbing the mouse (diff) | |
selection: remove selection_enabled()
Its name did not reflect its semantics. Since it was only used in a
single place, “inline” it there, and get rid of it.
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -2570,7 +2570,10 @@ 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 + : (seat->mouse.col >= 0 && + seat->mouse.row >= 0 && + term_mouse_grabbed(term, seat)) ? XCURSOR_TEXT + : term->is_searching ? XCURSOR_TEXT : XCURSOR_LEFT_PTR; render_xcursor_set(seat, term, xcursor); |
