aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-11 14:36:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-14 05:38:56 +0000
commitd29c4aed8a424b67eb0be4dbb7f8d964357cdfaa (patch)
treea01d72bd6abed970261fb5c4fa4fb331c7ff5d64 /input.c
parentinput: bindings: calculate 'cursor_is_on_grid' once only (diff)
input: mouse motion: don't update selection while scrollback searching
When we are doing a scrollback search, the selection *is* ongoing. We still don't want to update the selection when the mouse moves.
Diffstat (limited to 'input.c')
-rw-r--r--input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/input.c b/input.c
index cb4c84cf..3cd6830d 100644
--- a/input.c
+++ b/input.c
@@ -1296,8 +1296,10 @@ wl_pointer_motion(void *data, struct wl_pointer *wl_pointer,
bool cursor_is_on_grid = seat->mouse.col >= 0 && seat->mouse.row >= 0;
/* Update selection */
- if (cursor_is_on_new_cell || term->selection.end.row < 0)
- selection_update(term, selection_col, selection_row);
+ if (!term->is_searching) {
+ if (cursor_is_on_new_cell || term->selection.end.row < 0)
+ selection_update(term, selection_col, selection_row);
+ }
/* Send mouse event to client application */
if (!term_mouse_grabbed(term, seat) &&