ipc/window-event: fill "container" on close events

Also use the recursive description to include children as well

Careful: send the event before deleting the parent
This commit is contained in:
lbonn 2017-10-08 02:24:08 +02:00
parent b2d4caf6c3
commit 61005c3bda
2 changed files with 3 additions and 6 deletions

View file

@ -557,6 +557,8 @@ static void handle_view_destroyed(wlc_handle handle) {
parent->fullscreen = NULL;
}
ipc_event_window(parent, "close");
// Destroy empty workspaces
if (parent->type == C_WORKSPACE &&
parent->children->length == 0 &&
@ -567,7 +569,6 @@ static void handle_view_destroyed(wlc_handle handle) {
}
arrange_windows(parent, -1, -1);
ipc_event_window(parent, "close");
} else {
// Is it unmanaged?
int i;