diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-08-26 10:54:27 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-08-26 19:01:09 +0100 |
commit | e7c94708f24e3a173acbb28e6d3d79884e5c2b12 (patch) | |
tree | 39f3063612447a2a252553880f3371e29bd36417 /sway | |
parent | Merge pull request #2517 from fokditkak/add_fish_completion (diff) | |
download | sway-e7c94708f24e3a173acbb28e6d3d79884e5c2b12.tar.gz sway-e7c94708f24e3a173acbb28e6d3d79884e5c2b12.tar.zst sway-e7c94708f24e3a173acbb28e6d3d79884e5c2b12.zip |
ipc: emit window close event earlier, before destroying
Diffstat (limited to 'sway')
-rw-r--r-- | sway/tree/container.c | 2 |
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) { | |||
146 | return; | 146 | return; |
147 | } | 147 | } |
148 | 148 | ||
149 | wl_signal_emit(&con->events.destroy, con); | ||
150 | if (con->type == C_VIEW) { | 149 | if (con->type == C_VIEW) { |
151 | ipc_event_window(con, "close"); | 150 | ipc_event_window(con, "close"); |
152 | } | 151 | } |
152 | wl_signal_emit(&con->events.destroy, con); | ||
153 | 153 | ||
154 | container_end_mouse_operation(con); | 154 | container_end_mouse_operation(con); |
155 | 155 | ||