mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
adapt to renumbered groups
This commit is contained in:
parent
65158c0386
commit
27c011d4ee
4
group.c
4
group.c
@ -261,7 +261,9 @@ group_hidetoggle(struct screen_ctx *sc, int idx)
|
|||||||
if ( TAILQ_EMPTY(&gc->clients) ) {
|
if ( TAILQ_EMPTY(&gc->clients) ) {
|
||||||
struct autostartcmd *as;
|
struct autostartcmd *as;
|
||||||
TAILQ_FOREACH(as, &Conf.autostartq, entry) {
|
TAILQ_FOREACH(as, &Conf.autostartq, entry) {
|
||||||
if ( as->num == idx + 1 ) {
|
debug("idx=%i, as->num=%i, as->cmd=%s\n",
|
||||||
|
idx, as->num, as->cmd);
|
||||||
|
if ( as->num == idx ) {
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
if (as->lasttime < now - 5) {
|
if (as->lasttime < now - 5) {
|
||||||
debug("run %s\n", as->cmd);
|
debug("run %s\n", as->cmd);
|
||||||
|
Loading…
Reference in New Issue
Block a user