From: Peder Stray Date: Wed, 19 Oct 2016 06:41:10 +0000 (+0200) Subject: Add "output" to IPC events referencing a container (#2489) X-Git-Tag: 4.13~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b89690a3f923fbd5b7b3988ed7a8934af6038df;p=i3%2Fi3 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 --- 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: