From bc1f310e1cab1b514d509833254c520b91e87a60 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 15 Jan 2026 13:15:34 +0800 Subject: [PATCH] opt: not apply sloppyfocus if the surface is current pointer-focus surface --- src/mango.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mango.c b/src/mango.c index 1d776be..ac5edf9 100644 --- a/src/mango.c +++ b/src/mango.c @@ -4177,8 +4177,7 @@ void pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy, if (sloppyfocus && c && time && c->scene->node.enabled && !c->animation.tagining && - (surface != seat->pointer_state.focused_surface || - (selmon && selmon->sel && c != selmon->sel)) && + (surface != seat->pointer_state.focused_surface) && !client_is_unmanaged(c) && VISIBLEON(c, c->mon)) focusclient(c, 0);