opt: sloppyfocus not apply to tagouting client

This commit is contained in:
DreamMaoMao 2026-01-13 08:12:41 +08:00
parent 4efb8c5e06
commit 8e8c513beb

View file

@ -4176,9 +4176,10 @@ void pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
struct timespec now;
if (sloppyfocus && c && time && c->scene->node.enabled &&
!c->animation.tagining &&
(surface != seat->pointer_state.focused_surface ||
(selmon && selmon->sel && c != selmon->sel)) &&
!client_is_unmanaged(c))
!client_is_unmanaged(c) && VISIBLEON(c, c->mon))
focusclient(c, 0);
/* If surface is NULL, clear pointer focus */