diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-04 10:02:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-04 10:02:07 +0000 |
| commit | fac4b7310706684bbb719287094d9a9bcd73cb01 (patch) | |
| tree | 04806d4cb4d93b83eeb159a55a48ac3db9be8b66 | |
| parent | selection: add selection_extend() (diff) | |
input: right mouse click extends the current selection
| -rw-r--r-- | input.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 = |
