Replicate dwm behavior for sloppyfocus

This commit is contained in:
Forrest Bushstone 2024-04-05 21:54:54 -04:00
parent 577d8da6d1
commit ed09862dfa

2
dwl.c
View File

@ -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);