From: Michael Stapelberg Date: Tue, 11 May 2010 21:04:21 +0000 (+0200) Subject: grammar: s/layout_mode/window_mode X-Git-Tag: tree-pr1~218 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5eae70642777d9fdc961ff1d01c0927587ff39d2;p=i3%2Fi3 grammar: s/layout_mode/window_mode --- diff --git a/src/cmdparse.y b/src/cmdparse.y index c1b30294..47faa7f7 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -396,14 +396,14 @@ direction: ; mode: - TOK_MODE WHITESPACE layout_mode + TOK_MODE WHITESPACE window_mode { printf("should switch mode to %s\n", ($3 == TOK_FLOATING ? "floating" : "tiling")); /* TODO: actually switch mode (not toggle) */ } ; -layout_mode: +window_mode: TOK_FLOATING { $$ = TOK_FLOATING; } | TOK_TILING { $$ = TOK_TILING; } ;