aboutsummaryrefslogtreecommitdiff
path: root/sway/server.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-05 14:01:14 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-05 14:01:14 -0400
commit94ecd0f0aa16a3eee037b62097c4d939576b4934 (patch)
tree5960223c8b3a80b69df623dbb6c25aa706ca920e /sway/server.c
parentb3a1cf10735572bf0a13e66bbc6c2a1d452c5385 (diff)
Configure wlr_xdg_output_manager during init
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c9
1 files changed, 7 insertions, 2 deletions
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);