From 0047ff740a4f8da430cecdb19084f626bf535b21 Mon Sep 17 00:00:00 2001 From: Forrest Bushstone Date: Fri, 5 Apr 2024 21:54:54 -0400 Subject: [PATCH] Replicate dwm behavior for sloppyfocus --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index bf763df..52bfbc8 100644 --- a/dwl.c +++ b/dwl.c @@ -1882,7 +1882,7 @@ pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy, { struct timespec now; - if ((!active_constraint || active_constraint->surface != surface) && + if (surface != seat->pointer_state.focused_surface && sloppyfocus && time && c && !client_is_unmanaged(c)) focusclient(c, 0);