aboutsummaryrefslogtreecommitdiff
path: root/sway/server.c
diff options
context:
space:
mode:
authorJosef Gajdusek <atx@atx.name>2019-05-20 23:47:05 +0200
committerSimon Ser <contact@emersion.fr>2019-05-24 18:59:14 +0300
commitb3a5effef2be30c21d5a5cd7e60c9134af4948eb (patch)
tree22fd37fe1a67150f4978a3e8f1d21614655039c8 /sway/server.c
parent00cffb8e20d4bb800134f26dcda8a01afa4467d2 (diff)
Implement wlr-output-management-v1
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c
index b24cc1dc..e5200d59 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -120,6 +120,15 @@ bool server_init(struct sway_server *server) {
server->presentation =
wlr_presentation_create(server->wl_display, server->backend);
+ server->output_manager_v1 =
+ wlr_output_manager_v1_create(server->wl_display);
+ server->output_manager_apply.notify = handle_output_manager_apply;
+ wl_signal_add(&server->output_manager_v1->events.apply,
+ &server->output_manager_apply);
+ server->output_manager_test.notify = handle_output_manager_test;
+ wl_signal_add(&server->output_manager_v1->events.test,
+ &server->output_manager_test);
+
wlr_export_dmabuf_manager_v1_create(server->wl_display);
wlr_screencopy_manager_v1_create(server->wl_display);
wlr_data_control_manager_v1_create(server->wl_display);