aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-25 15:53:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-11-25 15:53:33 +0000
commit82219713cc46f353cb404419e0d4486a58eccfcd (patch)
treea2a12245255615daf908b5b7bdcbc1143f55c0a2 /input.c
parentMerge branch 'grapheme-width-max' (diff)
parentinput: finalize mouse selection on a pointer-leave event on the GRID surface (diff)
Merge branch 'finalize-selection-on-pointer-leave'
Diffstat (limited to 'input.c')
-rw-r--r--input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/input.c b/input.c
index 0aef43cc..02035909 100644
--- a/input.c
+++ b/input.c
@@ -1531,8 +1531,11 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
render_refresh_csd(old_moused);
break;
- case TERM_SURF_NONE:
case TERM_SURF_GRID:
+ selection_finalize(seat, old_moused, seat->pointer.serial);
+ break;
+
+ case TERM_SURF_NONE:
case TERM_SURF_SEARCH:
case TERM_SURF_SCROLLBACK_INDICATOR:
case TERM_SURF_RENDER_TIMER: