summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-07-13 21:55:04 +0100
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-08-01 16:57:14 +0100
commit686c084cec0b1143c877e8c0088732fad5229ce4 (patch)
tree80a3b3530d1d3baa99d1bb209d165979c5984221 /sway
parentipc: add window::title event (diff)
downloadsway-686c084cec0b1143c877e8c0088732fad5229ce4.tar.gz
sway-686c084cec0b1143c877e8c0088732fad5229ce4.tar.zst
sway-686c084cec0b1143c877e8c0088732fad5229ce4.zip
ipc: add workspace::empty event
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/container.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 47855052..3b3c5e2e 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -325,6 +325,8 @@ static struct sway_container *container_destroy_noreaping(
325 // emit IPC event 325 // emit IPC event
326 if (con->type == C_VIEW) { 326 if (con->type == C_VIEW) {
327 ipc_event_window(con, "close"); 327 ipc_event_window(con, "close");
328 } else if (con->type == C_WORKSPACE) {
329 ipc_event_workspace(NULL, con, "empty");
328 } 330 }
329 331
330 // The below functions move their children to somewhere else. 332 // The below functions move their children to somewhere else.