summary refs log tree commit diff
path: root/group.c
diff options
context:
space:
mode:
authoroga <oga>2008-05-19 17:13:55 +0000
committeroga <oga>2008-05-19 17:13:55 +0000
commit71f99ab78fb8f5f8c4ae93f7ed0529320c6fe391 (patch)
treefd793aca9a854098f96a4be67cbdb7590fb6172a /group.c
parentd347aa3d9a1ad8fb01286c51027c411f83d06a9c (diff)
downloadcwm-71f99ab78fb8f5f8c4ae93f7ed0529320c6fe391.tar.gz
cwm-71f99ab78fb8f5f8c4ae93f7ed0529320c6fe391.tar.xz
cwm-71f99ab78fb8f5f8c4ae93f7ed0529320c6fe391.zip
allow an autogroup value of 0 to mean no group. This means you can set
automatically "sticky" (in the traditional sense of the word) windows in
autogroup mode.

Based on an initial diff from Andrew Fresh, thanks!

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 616f30b..589015a 100644
--- a/group.c
+++ b/group.c
@@ -328,6 +328,9 @@ group_autogroup(struct client_ctx *cc)
 		}
 	}
 
+	if (strncmp("nogroup", group, 7) == 0)
+		return;
+
 	TAILQ_FOREACH(gc, &Groupq, entry) {
 		if (strcmp(shortcut_to_name[gc->shortcut], group) == 0) {
 			_group_add(gc, cc);