input: don't paste from primary if client is mouse tracking

This commit is contained in:
Daniel Eklöf 2019-08-09 21:26:34 +02:00
parent 356c5a28b5
commit 70b6d9d7d2
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 3 additions and 2 deletions

View file

@ -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);
}