opt: make focusmon and tagmon respect warpcursor setting
This commit is contained in:
@@ -190,7 +190,9 @@ int focusmon(const Arg *arg) {
|
||||
|
||||
old_selmon_sel = selmon->sel;
|
||||
selmon = m;
|
||||
if (warpcursor) {
|
||||
warp_cursor_to_selmon(selmon);
|
||||
}
|
||||
c = focustop(selmon);
|
||||
if (!c) {
|
||||
selmon->sel = NULL;
|
||||
@@ -1071,7 +1073,9 @@ int tagmon(const Arg *arg) {
|
||||
focusclient(c, 1);
|
||||
arrange(selmon, false);
|
||||
}
|
||||
if (warpcursor) {
|
||||
warp_cursor_to_selmon(c->mon);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user