diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-11 09:10:53 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-11 15:38:02 +0000 |
| commit | 0facfa4da7a292bfddfc5b297de79af01f6299aa (patch) | |
| tree | 117cfc470b1425d6a3ef7632a8953fdc1e9fee12 | |
| parent | selection: spell 'finalize' correctly (diff) | |
input: call selection_finalize() when BTN_LEFT is released
| -rw-r--r-- | input.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -353,6 +353,8 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer, case WL_POINTER_BUTTON_STATE_RELEASED: if (button == BTN_LEFT && term->selection.end.col == -1) selection_cancel(term); + else + selection_finalize(term); term->mouse.button = 0; /* For motion events */ term_mouse_up(term, button, term->mouse.row, term->mouse.col, |
