diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-05 15:39:57 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-05 16:04:30 -0400 |
commit | f242362e7e521a8f35f47572038a20d404d25327 (patch) | |
tree | 523748eb922a50f9e74a485b86f445f8bc759464 /sway | |
parent | Add -Wno-unused-result (diff) | |
download | sway-f242362e7e521a8f35f47572038a20d404d25327.tar.gz sway-f242362e7e521a8f35f47572038a20d404d25327.tar.zst sway-f242362e7e521a8f35f47572038a20d404d25327.zip |
Handle output removal on swaybar
Diffstat (limited to 'sway')
-rw-r--r-- | sway/tree/container.c | 4 |
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) { | |||
64 | return; | 64 | return; |
65 | } | 65 | } |
66 | // TODO send ipc event type based on the container type | 66 | // TODO send ipc event type based on the container type |
67 | ipc_event_window(container, "close"); | 67 | if (container->type == C_VIEW || container->type == C_WORKSPACE) { |
68 | ipc_event_window(container, "close"); | ||
69 | } | ||
68 | } | 70 | } |
69 | 71 | ||
70 | struct sway_container *container_create(enum sway_container_type type) { | 72 | struct sway_container *container_create(enum sway_container_type type) { |