Merge pull request #309 from WeraPea/warpcursor-focusmon-tagmon

fix: make focusmon and tagmon respect warpcursor setting
This commit is contained in:
DreamMaoMao 2025-10-20 08:31:54 +08:00
commit 974258c315

View file

@ -190,7 +190,9 @@ int focusmon(const Arg *arg) {
old_selmon_sel = selmon->sel; old_selmon_sel = selmon->sel;
selmon = m; selmon = m;
warp_cursor_to_selmon(selmon); if (warpcursor) {
warp_cursor_to_selmon(selmon);
}
c = focustop(selmon); c = focustop(selmon);
if (!c) { if (!c) {
selmon->sel = NULL; selmon->sel = NULL;
@ -1071,7 +1073,9 @@ int tagmon(const Arg *arg) {
focusclient(c, 1); focusclient(c, 1);
arrange(selmon, false); arrange(selmon, false);
} }
warp_cursor_to_selmon(c->mon); if (warpcursor) {
warp_cursor_to_selmon(c->mon);
}
return 0; return 0;
} }