fix vimode selection breaking on focus loss

This commit is contained in:
Piotr Kocia 2025-06-14 13:32:21 +02:00
parent 8215c8598d
commit c22ec6a9b9

View file

@ -2572,6 +2572,8 @@ wl_pointer_leave(void *data, struct wl_pointer *wl_pointer,
break;
case TERM_SURF_GRID:
// We want to keep the vimode selection going regardless
// of whether we have focus or not.
if(!old_moused->vimode.active) {
selection_finalize(seat, old_moused, seat->pointer.serial);
}