opt: disable sloppyfocus when start drag resize

This commit is contained in:
DreamMaoMao 2026-01-18 16:19:21 +08:00
parent 94e68278e7
commit b68b519145

View file

@ -4197,8 +4197,8 @@ void pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
uint32_t time) {
struct timespec now;
if (sloppyfocus && c && time && c->scene->node.enabled &&
!c->animation.tagining &&
if (sloppyfocus && !start_drag_window && c && time &&
c->scene->node.enabled && !c->animation.tagining &&
(surface != seat->pointer_state.focused_surface) &&
!client_is_unmanaged(c) && VISIBLEON(c, c->mon))
focusclient(c, 0);