parser: implement explicit "mode floating"/"mode tiling"

This commit is contained in:
Michael Stapelberg
2010-06-30 15:54:34 +02:00
parent 2da4173144
commit bd9e5c0bc4
2 changed files with 15 additions and 1 deletions

View File

@ -448,7 +448,11 @@ mode:
toggle_floating_mode(focused, false);
} else {
printf("should switch mode to %s\n", ($<number>3 == TOK_FLOATING ? "floating" : "tiling"));
/* TODO: actually switch mode (not toggle) */
if ($<number>3 == TOK_FLOATING) {
floating_enable(focused, false);
} else {
floating_disable(focused, false);
}
}
}
;