From d34bf87dba037a7c8bd76510230cc25854b68491 Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Sun, 26 Apr 2020 11:34:47 -0500 Subject: don't unfocus when mouse leaves a window --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index d09748a..f30d2bf 100644 --- a/dwl.c +++ b/dwl.c @@ -738,7 +738,7 @@ pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy) wlr_seat_pointer_notify_enter(seat, surface, sx, sy); /* If keyboard focus follows mouse, enforce that */ - if (sloppyfocus) + if (sloppyfocus && c) keyboardfocus(c, surface); } -- cgit v1.2.3