From 70b6d9d7d2969ea704780cad5017a43a66e9670a Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 9 Aug 2019 21:26:34 +0200 Subject: input: don't paste from primary if client is mouse tracking --- input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'input.c') diff --git a/input.c b/input.c index 9e3ad64e..96fcaf4c 100644 --- a/input.c +++ b/input.c @@ -433,7 +433,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, break; } } else { - if (term->mouse.count == 1 && button == BTN_MIDDLE) + if (term->mouse.count == 1 && button == BTN_MIDDLE && selection_enabled(term)) selection_from_primary(term); selection_cancel(term); } -- cgit v1.3