aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}