commit f0310933c89ba062a13df0b319d65f0574445ab8 parent 87ccf189646cfc79db791ef9b81b5b3f0c2040b7 Author: Ian Fan <ianfan0@gmail.com> Date: Fri, 13 Jul 2018 17:15:52 +0100 ipc: add window::close event Diffstat:
| M | sway/tree/container.c | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -321,7 +321,11 @@ static struct sway_container *container_destroy_noreaping( } wl_signal_emit(&con->events.destroy, con); - ipc_event_window(con, "close"); + + // emit IPC event + if (con->type == C_VIEW) { + ipc_event_window(con, "close"); + } // The below functions move their children to somewhere else. if (con->type == C_OUTPUT) {