From a3980d456d660020072c0a62b1ba129fd86aa09a Mon Sep 17 00:00:00 2001
From: Zandr Martin <zandrmartin@gmail.com>
Date: Thu, 28 Jul 2016 17:43:43 -0500
Subject: [PATCH] third try for #678

---
 sway/handlers.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sway/handlers.c b/sway/handlers.c
index 05da5700..405df1c8 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -269,6 +269,7 @@ static bool handle_view_created(wlc_handle handle) {
 		wlc_view_set_mask(handle, VISIBLE);
 		wlc_view_set_output(handle, panel_config->output);
 		wlc_view_bring_to_front(handle);
+		arrange_windows(&root_container, -1, -1);
 		return true;
 	}