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; } ;