aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-05 16:09:41 -0400
committerGitHub <noreply@github.com>2018-04-05 16:09:41 -0400
commit268c68b41707a664e5059699c720f000f20e2276 (patch)
tree523748eb922a50f9e74a485b86f445f8bc759464 /sway/tree
parent842a3ea45c07ab5ed8e3c20af5ef0dc92fff22de (diff)
parentf242362e7e521a8f35f47572038a20d404d25327 (diff)
Merge pull request #1745 from swaywm/swaybar-hotplugging
Handle output removal on swaybar
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 8fc9e3e8..3e8c1c75 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -64,7 +64,9 @@ static void container_close_notify(struct sway_container *container) {
return;
}
// TODO send ipc event type based on the container type
- ipc_event_window(container, "close");
+ if (container->type == C_VIEW || container->type == C_WORKSPACE) {
+ ipc_event_window(container, "close");
+ }
}
struct sway_container *container_create(enum sway_container_type type) {