cleanup
This commit is contained in:
parent
40e2431ffd
commit
292543b7dc
15
speedwm.c
15
speedwm.c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue