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 hidsel;
|
||||||
int isreset;
|
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 *clients;
|
||||||
Client *sel;
|
Client *sel;
|
||||||
#if USEIPC
|
#if USEIPC
|
||||||
|
@ -2417,10 +2414,6 @@ focusmon(const Arg *arg)
|
||||||
{
|
{
|
||||||
Monitor *m;
|
Monitor *m;
|
||||||
|
|
||||||
#if USEMOUSE
|
|
||||||
selmon->allowwarp = 1; /* allow warp */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!mons->next)
|
if (!mons->next)
|
||||||
return;
|
return;
|
||||||
if ((m = dirtomon(arg->i)) == selmon)
|
if ((m = dirtomon(arg->i)) == selmon)
|
||||||
|
@ -2476,18 +2469,10 @@ focusstack(int inc, int hid)
|
||||||
c = i;
|
c = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if USEMOUSE
|
|
||||||
selmon->allowwarp = 1;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (c) {
|
if (c) {
|
||||||
focus(c);
|
focus(c);
|
||||||
restack(selmon);
|
restack(selmon);
|
||||||
|
|
||||||
#if USEMOUSE
|
|
||||||
selmon->allowwarp = 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (HIDDEN(c)) {
|
if (HIDDEN(c)) {
|
||||||
showwin(c);
|
showwin(c);
|
||||||
c->mon->hidsel = 1;
|
c->mon->hidsel = 1;
|
||||||
|
|
Loading…
Reference in a new issue