This commit is contained in:
speedie 2022-12-17 12:59:54 +01:00
parent 40e2431ffd
commit 292543b7dc

View file

@ -366,9 +366,6 @@ struct Monitor {
int hidsel;
int isreset;
#if USEMOUSE
int allowwarp; /* allow warping or not. this allows us to only allow warping under certain conditions and disable it whenever we want */
#endif
Client *clients;
Client *sel;
#if USEIPC
@ -2417,10 +2414,6 @@ focusmon(const Arg *arg)
{
Monitor *m;
#if USEMOUSE
selmon->allowwarp = 1; /* allow warp */
#endif
if (!mons->next)
return;
if ((m = dirtomon(arg->i)) == selmon)
@ -2476,18 +2469,10 @@ focusstack(int inc, int hid)
c = i;
}
#if USEMOUSE
selmon->allowwarp = 1;
#endif
if (c) {
focus(c);
restack(selmon);
#if USEMOUSE
selmon->allowwarp = 0;
#endif
if (HIDDEN(c)) {
showwin(c);
c->mon->hidsel = 1;