diff options
author | op <op> | 2022-01-27 18:45:10 +0000 |
---|---|---|
committer | op <op> | 2022-01-27 18:45:10 +0000 |
commit | 7c22b36a230ea740a0fe2b9d089f3b3340dc182b (patch) | |
tree | 871c2d21fa2a0ef3071b43dde4de1410e917ee63 /group.c | |
parent | 81a08ddb896dacfe2c7b2e9cad43a8f623fadd24 (diff) | |
download | cwm-7c22b36a230ea740a0fe2b9d089f3b3340dc182b.tar.gz cwm-7c22b36a230ea740a0fe2b9d089f3b3340dc182b.tar.xz cwm-7c22b36a230ea740a0fe2b9d089f3b3340dc182b.zip |
Add group-last command that shows only the previously active group; ok okan
Diffstat (limited to 'group.c')
-rw-r--r-- | group.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/group.c b/group.c index de55211..3246936 100644 --- a/group.c +++ b/group.c @@ -215,6 +215,9 @@ group_only(struct screen_ctx *sc, int idx) { struct group_ctx *gc; + if (sc->group_last != sc->group_active) + sc->group_last = sc->group_active; + TAILQ_FOREACH(gc, &sc->groupq, entry) { if (gc->num == idx) group_show(gc); |