clear correct focus on keyboard leave

This commit is contained in:
Devin J. Pohly 2020-06-15 09:22:25 -05:00
parent 63f09d1f23
commit 728e0e5d71

2
dwl.c
View file

@ -598,7 +598,7 @@ focusclient(Client *c, struct wlr_surface *surface, int lift)
* is NULL, we clear the focus instead. * is NULL, we clear the focus instead.
*/ */
if (!surface) { if (!surface) {
wlr_seat_pointer_notify_clear_focus(seat); wlr_seat_keyboard_notify_clear_focus(seat);
} else if (surface != psurface) { } else if (surface != psurface) {
kb = wlr_seat_get_keyboard(seat); kb = wlr_seat_get_keyboard(seat);
wlr_seat_keyboard_notify_enter(seat, surface, wlr_seat_keyboard_notify_enter(seat, surface,