mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-04 06:46:38 -04:00
opt: disable sloppyfocus when start drag resize
This commit is contained in:
parent
94e68278e7
commit
b68b519145
1 changed files with 2 additions and 2 deletions
|
|
@ -4197,8 +4197,8 @@ void pointerfocus(Client *c, struct wlr_surface *surface, double sx, double sy,
|
||||||
uint32_t time) {
|
uint32_t time) {
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
|
|
||||||
if (sloppyfocus && c && time && c->scene->node.enabled &&
|
if (sloppyfocus && !start_drag_window && c && time &&
|
||||||
!c->animation.tagining &&
|
c->scene->node.enabled && !c->animation.tagining &&
|
||||||
(surface != seat->pointer_state.focused_surface) &&
|
(surface != seat->pointer_state.focused_surface) &&
|
||||||
!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