summaryrefslogtreecommitdiff
path: root/sway/desktop/layer_shell.c
diff options
context:
space:
mode:
authoremersion <[email protected]>2018-04-29 13:44:37 +0100
committerGitHub <[email protected]>2018-04-29 13:44:37 +0100
commit78e3bc1329e865fe8df2da77693868f38380ab30 (patch)
tree472f59488b8ae77b5f296de8d17e5ba68d4407fb /sway/desktop/layer_shell.c
parent24ab66d123ab493feb3c2343cbc9d93625b668d7 (diff)
parent976e6b99b62891a72e48fca21b93708e060c134a (diff)
Merge pull request #1854 from RyanDwyer/refactor-arrange-windows
Refactor arrange_windows()
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r--sway/desktop/layer_shell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index f9a1a8bd..03419ac1 100644
--- a/sway/desktop/layer_shell.c
+++ b/sway/desktop/layer_shell.c
@@ -12,6 +12,7 @@
#include "sway/layers.h"
#include "sway/output.h"
#include "sway/server.h"
+#include "sway/tree/arrange.h"
#include "sway/tree/layout.h"
#include "log.h"
@@ -175,7 +176,7 @@ void arrange_layers(struct sway_output *output) {
sizeof(struct wlr_box)) != 0) {
wlr_log(L_DEBUG, "Usable area changed, rearranging output");
memcpy(&output->usable_area, &usable_area, sizeof(struct wlr_box));
- arrange_windows(output->swayc, -1, -1);
+ arrange_output(output->swayc);
}
// Arrange non-exlusive surfaces from top->bottom