From 6b89690a3f923fbd5b7b3988ed7a8934af6038df Mon Sep 17 00:00:00 2001 From: Peder Stray Date: Wed, 19 Oct 2016 08:41:10 +0200 Subject: [PATCH] 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 --- src/ipc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ipc.c b/src/ipc.c index bf529b17..ddc09294 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -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: -- 2.39.5