summary refs log tree commit diff
path: root/parse.y
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 /parse.y
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 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index cf75142..bcdd4b1 100644
--- a/parse.y
+++ b/parse.y
@@ -125,7 +125,7 @@ main		: FONTNAME STRING		{
 			struct autogroupwin *aw;
 			char *p;
 
-			if ($2 < 1 || $2 > 9) {
+			if ($2 < 0 || $2 > 9) {
 				free($3);
 				yyerror("autogroup number out of range: %d", $2);
 				YYERROR;