add warp support to switcher
This commit is contained in:
parent
4179ccc349
commit
d740c49a4e
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue