diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2017-08-06 11:27:53 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2017-08-06 11:27:53 -0400 |
| commit | ec1683b94ecfb9b068942e12f3be8c913ddb449d (patch) | |
| tree | bfae22df29dd5cf78c60e35626056fa740f47ae0 | |
| parent | 19207544d36c65eaf4c941248f47058a66d6c2f1 (diff) | |
| parent | 8a5f70413ff52b2a2034dec8bc41660476259841 (diff) | |
Merge pull request #1309 from 4e554c4c/racey_kills
Prevent race condition in the kill command
| -rw-r--r-- | sway/container.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c index 125e1e3d..14647b3a 100644 --- a/sway/container.c +++ b/sway/container.c @@ -849,7 +849,6 @@ int swayc_gap(swayc_t *container) { void container_map(swayc_t *container, void (*f)(swayc_t *view, void *data), void *data) { if (container) { - f(container, data); int i; if (container->children) { for (i = 0; i < container->children->length; ++i) { @@ -863,6 +862,7 @@ void container_map(swayc_t *container, void (*f)(swayc_t *view, void *data), voi container_map(child, f, data); } } + f(container, data); } } |
