Implement fullscreen mode (Mod1+f)

This commit is contained in:
Michael Stapelberg
2009-02-14 20:12:50 +01:00
parent d06fe8bc9e
commit 18543c6bce
6 changed files with 89 additions and 56 deletions

View File

@ -301,6 +301,14 @@ void parse_command(xcb_connection_t *conn, const char *command) {
return;
}
/* Is it 'f' for fullscreen? */
if (command[0] == 'f') {
if (CUR_CELL->currently_focused == NULL)
return;
toggle_fullscreen(conn, CUR_CELL->currently_focused);
return;
}
/* Is it a <with>? */
if (command[0] == 'w') {
/* TODO: implement */
@ -315,7 +323,7 @@ void parse_command(xcb_connection_t *conn, const char *command) {
direction_t direction;
times = strtol(command, &rest, 10);
if (rest == NULL) {
printf("Invalid command: Consists only of a movement\n");
printf("Invalid command (\"%s\")\n", command);
return;
}
if (*rest == 'm' || *rest == 's') {