aboutsummaryrefslogtreecommitdiff
path: root/sway/server.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-29 18:07:03 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-29 22:11:08 -0400
commit2719ddfe5e171881f3997f9f853bfca97fe01529 (patch)
tree83d27c24a9e9c0eb6d55e5884c28a3218b0315bd /sway/server.c
parent5c9cdbcdd2a07e2ced7b60d629a3e20bd7c8bf68 (diff)
Spawn swaybars when outputs are added
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/server.c b/sway/server.c
index 92f72f13..75202df2 100644
--- a/sway/server.c
+++ b/sway/server.c
@@ -8,6 +8,8 @@
#include <wlr/render/gles2.h>
#include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_layer_shell.h>
+#include <wlr/types/wlr_screenshooter.h>
+#include <wlr/types/wlr_gamma_control.h>
#include <wlr/types/wlr_wl_shell.h>
// TODO WLR: make Xwayland optional
#include <wlr/xwayland.h>
@@ -45,10 +47,12 @@ bool server_init(struct sway_server *server) {
server->compositor = wlr_compositor_create(
server->wl_display, server->renderer);
-
server->data_device_manager =
wlr_data_device_manager_create(server->wl_display);
+ wlr_screenshooter_create(server->wl_display);
+ wlr_gamma_control_manager_create(server->wl_display);
+
server->new_output.notify = handle_new_output;
wl_signal_add(&server->backend->events.new_output, &server->new_output);