mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
opt:warp cursor to new mon after foucsmon
This commit is contained in:
parent
68e323a804
commit
a497205d33
1 changed files with 1 additions and 0 deletions
1
maomao.c
1
maomao.c
|
|
@ -3214,6 +3214,7 @@ void focusmon(const Arg *arg) {
|
||||||
selmon = dirtomon(arg->i);
|
selmon = dirtomon(arg->i);
|
||||||
while (!selmon->wlr_output->enabled && i++ < nmons);
|
while (!selmon->wlr_output->enabled && i++ < nmons);
|
||||||
}
|
}
|
||||||
|
warp_cursor_to_selmon(selmon);
|
||||||
focusclient(focustop(selmon), 1);
|
focusclient(focustop(selmon), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue