input: exit URLs mode on mouse button events

This makes URLs mode behave like scrollback search mode.
This commit is contained in:
Daniel Eklöf 2021-03-04 08:57:03 +01:00
parent 31a3b7dadf
commit 81b5d476a9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1693,6 +1693,7 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
case TERM_SURF_GRID: {
search_cancel(term);
urls_reset(term);
bool cursor_is_on_grid = seat->mouse.col >= 0 && seat->mouse.row >= 0;