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