aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index f13e2e96..6520c176 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -146,10 +146,10 @@ void container_begin_destroy(struct sway_container *con) {
return;
}
- wl_signal_emit(&con->events.destroy, con);
if (con->type == C_VIEW) {
ipc_event_window(con, "close");
}
+ wl_signal_emit(&con->events.destroy, con);
container_end_mouse_operation(con);