summaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c3
1 files changed, 2 insertions, 1 deletions
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) {
557 parent->fullscreen = NULL; 557 parent->fullscreen = NULL;
558 } 558 }
559 559
560 ipc_event_window(parent, "close");
561
560 // Destroy empty workspaces 562 // Destroy empty workspaces
561 if (parent->type == C_WORKSPACE && 563 if (parent->type == C_WORKSPACE &&
562 parent->children->length == 0 && 564 parent->children->length == 0 &&
@@ -567,7 +569,6 @@ static void handle_view_destroyed(wlc_handle handle) {
567 } 569 }
568 570
569 arrange_windows(parent, -1, -1); 571 arrange_windows(parent, -1, -1);
570 ipc_event_window(parent, "close");
571 } else { 572 } else {
572 // Is it unmanaged? 573 // Is it unmanaged?
573 int i; 574 int i;