From 94ecd0f0aa16a3eee037b62097c4d939576b4934 Mon Sep 17 00:00:00 2001
From: Drew DeVault <sir@cmpwn.com>
Date: Thu, 5 Apr 2018 14:01:14 -0400
Subject: Configure wlr_xdg_output_manager during init

---
 sway/server.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'sway')

diff --git a/sway/server.c b/sway/server.c
index 54945312..dfd01798 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -12,15 +12,17 @@
 #include <wlr/types/wlr_layer_shell.h>
 #include <wlr/types/wlr_primary_selection.h>
 #include <wlr/types/wlr_screenshooter.h>
-#include <wlr/types/wlr_wl_shell.h>
 #include <wlr/types/wlr_xcursor_manager.h>
+#include <wlr/types/wlr_xdg_output.h>
+#include <wlr/types/wlr_wl_shell.h>
 #include <wlr/util/log.h>
 // TODO WLR: make Xwayland optional
 #include <wlr/xwayland.h>
 #include "sway/commands.h"
 #include "sway/config.h"
-#include "sway/server.h"
 #include "sway/input/input-manager.h"
+#include "sway/server.h"
+#include "sway/tree/layout.h"
 
 static void server_ready(struct wl_listener *listener, void *data) {
 	wlr_log(L_DEBUG, "Compositor is ready, executing cmds in queue");
@@ -61,6 +63,9 @@ bool server_init(struct sway_server *server) {
 	server->new_output.notify = handle_new_output;
 	wl_signal_add(&server->backend->events.new_output, &server->new_output);
 
+	wlr_xdg_output_manager_create(server->wl_display,
+			root_container.sway_root->output_layout);
+
 	server->layer_shell = wlr_layer_shell_create(server->wl_display);
 	wl_signal_add(&server->layer_shell->events.new_surface,
 		&server->layer_shell_surface);
-- 
cgit v1.2.3