about summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authorokan <okan>2022-02-27 14:59:55 +0000
committerokan <okan>2022-02-27 14:59:55 +0000
commit7af3a7b8b6966d7c3b0a2fb2fcdb6be314bfd7c1 (patch)
tree5db3a53e3b439857a4646ded170d999850a1a7ea /group.c
parent35b0da9202fbfd83662a0649313b5c4b8cb97f5e (diff)
parent4e73ce533c98c54a83fa24c71105bbb1b40a0803 (diff)
downloadcwm-7af3a7b8b6966d7c3b0a2fb2fcdb6be314bfd7c1.tar.gz
cwm-7af3a7b8b6966d7c3b0a2fb2fcdb6be314bfd7c1.tar.xz
cwm-7af3a7b8b6966d7c3b0a2fb2fcdb6be314bfd7c1.zip
cvsimport
* refs/heads/master:
  cycling fix: when no client is active, warp pointer to last active; from Walter Alejandro Iglesias.
  whitespace
  Fix spelling of some unused MWM hints; from Sean C. Farley.
  Add group-last command that shows only the previously active group; ok okan
  Allow bare numbers for key and mouse bindings; taken from similar support in other parse.y's; from Leon Fischer <lfischer@airmail.cc>.
  sync parse.y changes from base; ok naddy@
  Do not attempt to grab keys without a keycode; this incidentally allows XF86 keys support.
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 59eae73..af4c759 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);