From f6da4dda4b9598eab16d4d7d77a06693fa6df9c3 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 16 Dec 2015 19:20:34 -0500 Subject: Bring unmanaged windows to front on output arrange Fixes #312 --- sway/container.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sway/container.c') 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) { } list_free(cont->children); } + if (cont->unmanaged) { + list_free(cont->unmanaged); + } if (cont->floating) { while (cont->floating->length) { free_swayc(cont->floating->items[0]); @@ -104,6 +107,7 @@ swayc_t *new_output(wlc_handle handle) { output->name = name ? strdup(name) : NULL; output->width = size->w; output->height = size->h; + output->unmanaged = create_list(); apply_output_config(oc, output); add_child(&root_container, output); -- cgit v1.2.3