opt: not apply sloppyfocus if the surface is current pointer-focus surface

This commit is contained in:
DreamMaoMao 2026-01-15 13:15:34 +08:00
parent 06a4acd992
commit bc1f310e1c

View file

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