Add "output" to IPC events referencing a container (#2489)
Add the property "output" to all IPC events that has an output container as a parent, making it easier to keep track of such things. fixes #2478
This commit is contained in:
parent
e51a89e842
commit
6b89690a3f
|
@ -294,6 +294,11 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
|
|||
ystr("focused");
|
||||
y(bool, (con == focused));
|
||||
|
||||
if (con->type != CT_ROOT && con->type != CT_OUTPUT) {
|
||||
ystr("output");
|
||||
ystr(con_get_output(con)->name);
|
||||
}
|
||||
|
||||
ystr("layout");
|
||||
switch (con->layout) {
|
||||
case L_DEFAULT:
|
||||
|
|
Loading…
Reference in New Issue