input: cancel search on mouse button events

This commit is contained in:
Daniel Eklöf 2019-08-27 19:44:19 +02:00
parent 43fc297fbd
commit 3f767be500
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -448,6 +448,8 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
struct terminal *term = data;
search_cancel(term);
switch (state) {
case WL_POINTER_BUTTON_STATE_PRESSED: {
/* Time since last click */