summaryrefslogtreecommitdiffstats
path: root/sway/container.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-12-16 19:20:34 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-12-16 19:20:34 -0500
commitf6da4dda4b9598eab16d4d7d77a06693fa6df9c3 (patch)
tree20ef4c5270639ac0cf972ab75a497b9e461dccf2 /sway/container.c
parentMerge pull request #340 from mikkeloscar/seperator-separator (diff)
downloadsway-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.c4
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);