From 61005c3bdab54b2ee84365fed4894c0e34da6c5b Mon Sep 17 00:00:00 2001 From: lbonn Date: Sun, 8 Oct 2017 02:24:08 +0200 Subject: 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 --- sway/handlers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sway/handlers.c') diff --git a/sway/handlers.c b/sway/handlers.c index 4a2298cd..db0c5e24 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -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; -- cgit v1.2.3