input: right mouse click extends the current selection

This commit is contained in:
Daniel Eklöf 2020-04-04 12:02:07 +02:00
parent aa01521ff6
commit fac4b73107
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1195,6 +1195,10 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
}
}
else if (button == BTN_RIGHT && wayl->mouse.count == 1) {
selection_extend(term, wayl->mouse.col, wayl->mouse.row, serial);
}
else {
for (size_t i = 0; i < ALEN(wayl->conf->bindings.mouse); i++) {
const struct mouse_binding *binding =