about summary refs log tree commit diff
path: root/parse.y
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2013-12-30 02:41:33 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2013-12-30 02:41:33 +0100
commitf15a7028eb906c2c3be5a48b9c8c3fe97a8a9b02 (patch)
tree273c9992d2050372b497168552b6a2659d702032 /parse.y
parentb387351df1593020665df5e5ee5d86d16ad8b7d6 (diff)
downloadcwm-f15a7028eb906c2c3be5a48b9c8c3fe97a8a9b02.tar.gz
cwm-f15a7028eb906c2c3be5a48b9c8c3fe97a8a9b02.tar.xz
cwm-f15a7028eb906c2c3be5a48b9c8c3fe97a8a9b02.zip
Add acceptraise to specify whether applications can activate and raise windows. cn-noraise-global
Greetings from 30C3.
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y9
1 files changed, 8 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index c7a802a..3973f87 100644
--- a/parse.y
+++ b/parse.y
@@ -71,7 +71,7 @@ typedef struct {
 %token	FONTNAME STICKY GAP MOUSEBIND
 %token	AUTOGROUP BIND COMMAND IGNORE
 %token	YES NO BORDERWIDTH MOVEAMOUNT
-%token	COLOR SNAPDIST
+%token	COLOR SNAPDIST ACCEPTRAISE
 %token	ACTIVEBORDER INACTIVEBORDER URGENCYBORDER
 %token	GROUPBORDER UNGROUPBORDER
 %token	MENUBG MENUFG
@@ -117,6 +117,12 @@ main		: FONTNAME STRING		{
 			else
 				conf->flags |= CONF_STICKY_GROUPS;
 		}
+		| ACCEPTRAISE yesno {
+			if ($2 == 0)
+				conf->flags &= ~CONF_ACCEPT_RAISE;
+			else
+				conf->flags |= CONF_ACCEPT_RAISE;
+		}
 		| BORDERWIDTH NUMBER {
 			if ($2 < 0) {
 				yyerror("invalid borderwidth: %d", $2);
@@ -256,6 +262,7 @@ lookup(char *s)
 {
 	/* this has to be sorted always */
 	static const struct keywords keywords[] = {
+		{ "acceptraise",	ACCEPTRAISE},
 		{ "activeborder",	ACTIVEBORDER},
 		{ "autogroup",		AUTOGROUP},
 		{ "bind",		BIND},