diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-28 19:27:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-28 19:27:52 -0400 |
commit | ca809d25199b229b3da7d69f427eb67539dc7bc0 (patch) | |
tree | b28c55c464feb85c61f314a26487404fd63f4fb3 /sway/server.c | |
parent | 9070950eecded7bfa64e7bca3bb76b150ccc8b72 (diff) | |
parent | 8d6bce02afc656bf792815ed68121f4e614cd175 (diff) |
Merge pull request #1642 from swaywm/layer-shell
Implement layer shell (rendering)
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index ca08d7fb..92f72f13 100644 --- a/sway/server.c +++ b/sway/server.c @@ -7,6 +7,7 @@ #include <wlr/render/wlr_renderer.h> #include <wlr/render/gles2.h> #include <wlr/types/wlr_compositor.h> +#include <wlr/types/wlr_layer_shell.h> #include <wlr/types/wlr_wl_shell.h> // TODO WLR: make Xwayland optional #include <wlr/xwayland.h> @@ -51,6 +52,11 @@ 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); + server->layer_shell = wlr_layer_shell_create(server->wl_display); + wl_signal_add(&server->layer_shell->events.new_surface, + &server->layer_shell_surface); + server->layer_shell_surface.notify = handle_layer_shell_surface; + server->xdg_shell_v6 = wlr_xdg_shell_v6_create(server->wl_display); wl_signal_add(&server->xdg_shell_v6->events.new_surface, &server->xdg_shell_v6_surface); |