summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorop <op>2022-01-27 18:45:10 +0000
committerop <op>2022-01-27 18:45:10 +0000
commit7c22b36a230ea740a0fe2b9d089f3b3340dc182b (patch)
tree871c2d21fa2a0ef3071b43dde4de1410e917ee63 /group.c
parent81a08ddb896dacfe2c7b2e9cad43a8f623fadd24 (diff)
downloadcwm-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.c3
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);