Allow assign to output

Implements the "assign" part of issue #2764.
This commit is contained in:
Orestis Floros
2017-09-16 20:54:44 +03:00
parent 45d1e51857
commit a35854ddf4
7 changed files with 166 additions and 4 deletions

View File

@ -557,7 +557,8 @@ struct Assignment {
A_COMMAND = (1 << 0),
A_TO_WORKSPACE = (1 << 1),
A_NO_FOCUS = (1 << 2),
A_TO_WORKSPACE_NUMBER = (1 << 3)
A_TO_WORKSPACE_NUMBER = (1 << 3),
A_TO_OUTPUT = (1 << 4)
} type;
/** the criteria to check if a window matches */
@ -567,6 +568,7 @@ struct Assignment {
union {
char *command;
char *workspace;
char *output;
} dest;
TAILQ_ENTRY(Assignment)