mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
altpersist->cycling to be more clear that this is for cycling mod
persistence; based on a diff from Alexander Polakov, in preparation for looping through other potential cycling modifiers.
This commit is contained in:
parent
fb4936d0f7
commit
57766d8606
2
calmwm.h
2
calmwm.h
@ -202,7 +202,7 @@ struct screen_ctx {
|
|||||||
Window menuwin;
|
Window menuwin;
|
||||||
struct color color[CWM_COLOR_MAX];
|
struct color color[CWM_COLOR_MAX];
|
||||||
GC gc;
|
GC gc;
|
||||||
int altpersist;
|
int cycling;
|
||||||
int xmax;
|
int xmax;
|
||||||
int ymax;
|
int ymax;
|
||||||
struct gap gap;
|
struct gap gap;
|
||||||
|
6
client.c
6
client.c
@ -228,7 +228,7 @@ client_setactive(struct client_ctx *cc, int fg)
|
|||||||
* If we're in the middle of alt-tabbing, don't change
|
* If we're in the middle of alt-tabbing, don't change
|
||||||
* the order please.
|
* the order please.
|
||||||
*/
|
*/
|
||||||
if (!sc->altpersist)
|
if (!sc->cycling)
|
||||||
client_mtf(cc);
|
client_mtf(cc);
|
||||||
} else
|
} else
|
||||||
client_leave(cc);
|
client_leave(cc);
|
||||||
@ -638,8 +638,8 @@ client_cycle(struct screen_ctx *sc, int flags)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reset when alt is released. XXX I hate this hack */
|
/* reset when cycling mod is released. XXX I hate this hack */
|
||||||
sc->altpersist = 1;
|
sc->cycling = 1;
|
||||||
client_ptrsave(oldcc);
|
client_ptrsave(oldcc);
|
||||||
client_ptrwarp(newcc);
|
client_ptrwarp(newcc);
|
||||||
}
|
}
|
||||||
|
@ -331,7 +331,7 @@ xev_handle_keyrelease(XEvent *ee)
|
|||||||
if (keysym != XK_Alt_L && keysym != XK_Alt_R)
|
if (keysym != XK_Alt_L && keysym != XK_Alt_R)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
sc->altpersist = 0;
|
sc->cycling = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* XXX - better interface... xevents should not know about
|
* XXX - better interface... xevents should not know about
|
||||||
|
Loading…
Reference in New Issue
Block a user