implement 'fullscreen' command
This commit is contained in:
parent
fdd44dcada
commit
0ea85c1b9d
|
@ -238,7 +238,6 @@ operation:
|
||||||
/*| reload
|
/*| reload
|
||||||
| restart
|
| restart
|
||||||
| mark
|
| mark
|
||||||
| fullscreen
|
|
||||||
| layout
|
| layout
|
||||||
| border
|
| border
|
||||||
| mode
|
| mode
|
||||||
|
@ -249,6 +248,7 @@ operation:
|
||||||
| focus
|
| focus
|
||||||
| kill
|
| kill
|
||||||
| open
|
| open
|
||||||
|
| fullscreen
|
||||||
;
|
;
|
||||||
|
|
||||||
exec:
|
exec:
|
||||||
|
@ -285,14 +285,14 @@ kill:
|
||||||
owindow *current;
|
owindow *current;
|
||||||
|
|
||||||
printf("killing!\n");
|
printf("killing!\n");
|
||||||
/* TODO: check if the match is empty, not if the result is empty */
|
/* check if the match is empty, not if the result is empty */
|
||||||
if (match_is_empty(¤t_match))
|
if (match_is_empty(¤t_match))
|
||||||
tree_close(focused);
|
tree_close(focused);
|
||||||
else {
|
else {
|
||||||
TAILQ_FOREACH(current, &owindows, owindows) {
|
TAILQ_FOREACH(current, &owindows, owindows) {
|
||||||
printf("matching: %p / %s\n", current->con, current->con->name);
|
printf("matching: %p / %s\n", current->con, current->con->name);
|
||||||
tree_close(current->con);
|
tree_close(current->con);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -314,3 +314,22 @@ open:
|
||||||
tree_open_con(NULL);
|
tree_open_con(NULL);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
fullscreen:
|
||||||
|
TOK_FULLSCREEN
|
||||||
|
{
|
||||||
|
printf("toggling fullscreen\n");
|
||||||
|
owindow *current;
|
||||||
|
|
||||||
|
/* check if the match is empty, not if the result is empty */
|
||||||
|
if (match_is_empty(¤t_match))
|
||||||
|
con_toggle_fullscreen(focused);
|
||||||
|
else {
|
||||||
|
TAILQ_FOREACH(current, &owindows, owindows) {
|
||||||
|
printf("matching: %p / %s\n", current->con, current->con->name);
|
||||||
|
con_toggle_fullscreen(current->con);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
;
|
||||||
|
|
Loading…
Reference in New Issue