diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-29 18:07:03 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-29 22:11:08 -0400 |
commit | 2719ddfe5e171881f3997f9f853bfca97fe01529 (patch) | |
tree | 83d27c24a9e9c0eb6d55e5884c28a3218b0315bd /sway/server.c | |
parent | 5c9cdbcdd2a07e2ced7b60d629a3e20bd7c8bf68 (diff) |
Spawn swaybars when outputs are added
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 6 |
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); |