From 8e8c513beb79f425d3bb166a96478ba6e87932b2 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 13 Jan 2026 08:12:41 +0800 Subject: [PATCH] opt: sloppyfocus not apply to tagouting client --- src/mango.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mango.c b/src/mango.c index a22e8be..1d776be 100644 --- a/src/mango.c +++ b/src/mango.c @@ -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 */