Replicate dwm behavior for sloppyfocus

This commit is contained in:
Forrest Bushstone 2024-04-05 21:54:54 -04:00 committed by Leonardo Hernández Hernández
parent 9825c26cdd
commit 0047ff740a
No known key found for this signature in database
GPG Key ID: E538897EE11B9624

2
dwl.c
View File

@ -1882,7 +1882,7 @@ pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
{ {
struct timespec now; struct timespec now;
if ((!active_constraint || active_constraint->surface != surface) && if (surface != seat->pointer_state.focused_surface &&
sloppyfocus && time && c && !client_is_unmanaged(c)) sloppyfocus && time && c && !client_is_unmanaged(c))
focusclient(c, 0); focusclient(c, 0);