summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-04-26 11:34:47 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-04-26 12:01:00 -0500
commitd34bf87dba037a7c8bd76510230cc25854b68491 (patch)
tree990b6672306f340439985d2b4a9860a5b37445b8
parent7f95c7736e2addaf8271f64782e847a4a11cbc94 (diff)
don't unfocus when mouse leaves a window
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
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);
}