summaryrefslogtreecommitdiff
path: root/app/cwm/parse.y
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-02-07 21:07:01 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-02-07 21:07:01 +0000
commit42101f69c9f47be0c3b7d1b191ccf816cedca08f (patch)
tree882ac6d4c11bfa0d22955235eec5459f1159b0e0 /app/cwm/parse.y
parent3661c91cb20d6b3068d82c2ceb32e4bfb7038eae (diff)
add 'moveamount' to cwmrc; it sets keyboard movement amount, making
it more useful on large screens manpage tweak & ok jmc@ ok okan@, oga@
Diffstat (limited to 'app/cwm/parse.y')
-rw-r--r--app/cwm/parse.y9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/cwm/parse.y b/app/cwm/parse.y
index 34db55029..53a2a6d8e 100644
--- a/app/cwm/parse.y
+++ b/app/cwm/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.18 2009/01/23 19:00:59 okan Exp $ */
+/* $OpenBSD: parse.y,v 1.19 2009/02/07 21:07:00 martynas Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -66,7 +66,7 @@ typedef struct {
%token FONTNAME STICKY GAP MOUSEBIND
%token AUTOGROUP BIND COMMAND IGNORE
-%token YES NO BORDERWIDTH
+%token YES NO BORDERWIDTH MOVEAMOUNT
%token ERROR
%token <v.string> STRING
%token <v.number> NUMBER
@@ -110,6 +110,9 @@ main : FONTNAME STRING {
| BORDERWIDTH NUMBER {
conf->bwidth = $2;
}
+ | MOVEAMOUNT NUMBER {
+ conf->mamount = $2;
+ }
| COMMAND STRING string {
conf_cmd_add(conf, $3, $2, 0);
free($2);
@@ -207,6 +210,7 @@ lookup(char *s)
{ "gap", GAP},
{ "ignore", IGNORE},
{ "mousebind", MOUSEBIND},
+ { "moveamount", MOVEAMOUNT},
{ "no", NO},
{ "sticky", STICKY},
{ "yes", YES}
@@ -499,6 +503,7 @@ parse_config(const char *filename, struct conf *xconf)
xconf->flags = conf->flags;
xconf->bwidth = conf->bwidth;
+ xconf->mamount = conf->mamount;
while ((cmd = TAILQ_FIRST(&conf->cmdq)) != NULL) {
TAILQ_REMOVE(&conf->cmdq, cmd, entry);