diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-07-13 17:15:52 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-08-01 16:57:14 +0100 |
commit | f0310933c89ba062a13df0b319d65f0574445ab8 (patch) | |
tree | 529f17a3b76ab6d31627473007b21bb3d10c40ba /sway/tree/container.c | |
parent | ipc: add workspace::init event (diff) | |
download | sway-f0310933c89ba062a13df0b319d65f0574445ab8.tar.gz sway-f0310933c89ba062a13df0b319d65f0574445ab8.tar.zst sway-f0310933c89ba062a13df0b319d65f0574445ab8.zip |
ipc: add window::close event
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index f082e8b1..47855052 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -321,7 +321,11 @@ static struct sway_container *container_destroy_noreaping( | |||
321 | } | 321 | } |
322 | 322 | ||
323 | wl_signal_emit(&con->events.destroy, con); | 323 | wl_signal_emit(&con->events.destroy, con); |
324 | ipc_event_window(con, "close"); | 324 | |
325 | // emit IPC event | ||
326 | if (con->type == C_VIEW) { | ||
327 | ipc_event_window(con, "close"); | ||
328 | } | ||
325 | 329 | ||
326 | // The below functions move their children to somewhere else. | 330 | // The below functions move their children to somewhere else. |
327 | if (con->type == C_OUTPUT) { | 331 | if (con->type == C_OUTPUT) { |