add warp support to switcher

This commit is contained in:
speedie 2022-11-12 11:53:11 +01:00
parent 4179ccc349
commit d740c49a4e

View file

@ -4192,6 +4192,14 @@ switcherstart(const Arg *arg)
switcherend(); /* end the alt-tab functionality */
XUngrabKeyboard(dpy, CurrentTime); /* stop taking all input from keyboard */
focus(c);
if (warpcursor) {
selmon->allowwarp = 1;
if (m == selmon && selmon->allowwarp && (m->tagset[m->seltags] & m->sel->tags) && selmon->lt[selmon->sellt] != &layouts[2])
warp(m->sel);
selmon->allowwarp = 0;
}
restack(selmon);
}
} else {