aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authoroga2008-05-19 17:13:55 +0000
committeroga2008-05-19 17:13:55 +0000
commit7ba072eb1a4c66b68f47468db29b67353fac496c (patch)
tree07ae20d2127b0b331d300f7d77cb927ff0697ba5 /parse.y
parenta6afc5f36998efb9a564b3a22d2e36a89812af3d (diff)
downloadcwm-7ba072eb1a4c66b68f47468db29b67353fac496c.tar.gz
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.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 5c5187c..6219960 100644
--- a/parse.y
+++ b/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.8 2008/05/18 19:43:50 oga Exp $ */
+/* $OpenBSD: parse.y,v 1.9 2008/05/19 17:13:55 oga Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -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;