diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-16 19:20:34 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-16 19:20:34 -0500 |
commit | f6da4dda4b9598eab16d4d7d77a06693fa6df9c3 (patch) | |
tree | 20ef4c5270639ac0cf972ab75a497b9e461dccf2 /sway/container.c | |
parent | Merge pull request #340 from mikkeloscar/seperator-separator (diff) | |
download | sway-f6da4dda4b9598eab16d4d7d77a06693fa6df9c3.tar.gz sway-f6da4dda4b9598eab16d4d7d77a06693fa6df9c3.tar.zst sway-f6da4dda4b9598eab16d4d7d77a06693fa6df9c3.zip |
Bring unmanaged windows to front on output arrange
Fixes #312
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c index a40c483c..8165bbad 100644 --- a/sway/container.c +++ b/sway/container.c | |||
@@ -38,6 +38,9 @@ static void free_swayc(swayc_t *cont) { | |||
38 | } | 38 | } |
39 | list_free(cont->children); | 39 | list_free(cont->children); |
40 | } | 40 | } |
41 | if (cont->unmanaged) { | ||
42 | list_free(cont->unmanaged); | ||
43 | } | ||
41 | if (cont->floating) { | 44 | if (cont->floating) { |
42 | while (cont->floating->length) { | 45 | while (cont->floating->length) { |
43 | free_swayc(cont->floating->items[0]); | 46 | free_swayc(cont->floating->items[0]); |
@@ -104,6 +107,7 @@ swayc_t *new_output(wlc_handle handle) { | |||
104 | output->name = name ? strdup(name) : NULL; | 107 | output->name = name ? strdup(name) : NULL; |
105 | output->width = size->w; | 108 | output->width = size->w; |
106 | output->height = size->h; | 109 | output->height = size->h; |
110 | output->unmanaged = create_list(); | ||
107 | 111 | ||
108 | apply_output_config(oc, output); | 112 | apply_output_config(oc, output); |
109 | add_child(&root_container, output); | 113 | add_child(&root_container, output); |