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 */
|
switcherend(); /* end the alt-tab functionality */
|
||||||
XUngrabKeyboard(dpy, CurrentTime); /* stop taking all input from keyboard */
|
XUngrabKeyboard(dpy, CurrentTime); /* stop taking all input from keyboard */
|
||||||
focus(c);
|
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);
|
restack(selmon);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue