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
next
Peder Stray 2016-10-19 08:41:10 +02:00 committed by Michael Stapelberg
parent e51a89e842
commit 6b89690a3f
1 changed files with 5 additions and 0 deletions

View File

@ -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: