don't unfocus when mouse leaves a window

This commit is contained in:
Devin J. Pohly 2020-04-26 11:34:47 -05:00
parent 7f95c7736e
commit d34bf87dba

2
dwl.c
View File

@ -738,7 +738,7 @@ pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy)
wlr_seat_pointer_notify_enter(seat, surface, sx, sy); wlr_seat_pointer_notify_enter(seat, surface, sx, sy);
/* If keyboard focus follows mouse, enforce that */ /* If keyboard focus follows mouse, enforce that */
if (sloppyfocus) if (sloppyfocus && c)
keyboardfocus(c, surface); keyboardfocus(c, surface);
} }