input/seat: don't notify keyboard grabs with NULL surface on shutdown
Fixes #5469, a minor regression introduced in #5368.
This commit is contained in:
parent
b3f08597cd
commit
2270b4c213
|
@ -1179,7 +1179,13 @@ void seat_set_focus_surface(struct sway_seat *seat,
|
||||||
seat_send_unfocus(focus, seat);
|
seat_send_unfocus(focus, seat);
|
||||||
seat->has_focus = false;
|
seat->has_focus = false;
|
||||||
}
|
}
|
||||||
seat_keyboard_notify_enter(seat, surface);
|
|
||||||
|
if (surface) {
|
||||||
|
seat_keyboard_notify_enter(seat, surface);
|
||||||
|
} else {
|
||||||
|
wlr_seat_keyboard_notify_clear_focus(seat->wlr_seat);
|
||||||
|
}
|
||||||
|
|
||||||
seat_tablet_pads_notify_enter(seat, surface);
|
seat_tablet_pads_notify_enter(seat, surface);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue