mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-03 07:15:44 -04:00
opt: sloppyfocus not apply to tagouting client
This commit is contained in:
parent
4a2c91a445
commit
a981236d13
1 changed files with 2 additions and 1 deletions
|
|
@ -4116,9 +4116,10 @@ void pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
|
|
||||||
if (sloppyfocus && c && time && c->scene->node.enabled &&
|
if (sloppyfocus && c && time && c->scene->node.enabled &&
|
||||||
|
!c->animation.tagining &&
|
||||||
(surface != seat->pointer_state.focused_surface ||
|
(surface != seat->pointer_state.focused_surface ||
|
||||||
(selmon && selmon->sel && c != selmon->sel)) &&
|
(selmon && selmon->sel && c != selmon->sel)) &&
|
||||||
!client_is_unmanaged(c))
|
!client_is_unmanaged(c) && VISIBLEON(c, c->mon))
|
||||||
focusclient(c, 0);
|
focusclient(c, 0);
|
||||||
|
|
||||||
/* If surface is NULL, clear pointer focus */
|
/* If surface is NULL, clear pointer focus */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue