mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-04 01:40:21 -05:00
input: don't paste from primary if client is mouse tracking
This commit is contained in:
parent
356c5a28b5
commit
70b6d9d7d2
3 changed files with 3 additions and 2 deletions
2
input.c
2
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue