aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index c7bce38a..e205fbcf 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -2,6 +2,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
+#include <wlr/types/wlr_output_layout.h>
#include "sway/container.h"
#include "sway/layout.h"
#include "sway/output.h"
@@ -53,6 +54,10 @@ swayc_t *new_output(struct sway_output *sway_output) {
output->width = size.width;
output->height = size.width;
+ // TODO configure output layout position
+ wlr_output_layout_add_auto(root_container.output_layout,
+ sway_output->wlr_output);
+
add_child(&root_container, output);
// Create workspace