diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-25 14:21:53 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-25 14:21:53 +0000 |
| commit | 325ad6dd4e950546514448a838ce03027103d0bd (patch) | |
| tree | a2a12245255615daf908b5b7bdcbc1143f55c0a2 /input.c | |
| parent | Merge branch 'grapheme-width-max' (diff) | |
input: finalize mouse selection on a pointer-leave event on the GRID surface
If a mouse selection was ongoing, and the user switched
workspace (probably using the keyboard...), and then back, the
selection was still treated as ongoing, while all other mouse state
has been reset.
This meant the user had to tap at least once to stop the selection.
Diffstat (limited to 'input.c')
| -rw-r--r-- | input.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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: |
