aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-11 09:10:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-11 15:38:02 +0000
commit0facfa4da7a292bfddfc5b297de79af01f6299aa (patch)
tree117cfc470b1425d6a3ef7632a8953fdc1e9fee12 /input.c
parentselection: spell 'finalize' correctly (diff)
input: call selection_finalize() when BTN_LEFT is released
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input.c b/input.c
index c18e24c8..8766aa96 100644
--- a/input.c
+++ b/input.c
@@ -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,