diff options
author | 2018-03-28 15:47:22 -0400 | |
---|---|---|
committer | 2018-03-28 15:47:22 -0400 | |
commit | 0c8a64942e087038806b353949c900e03fd764a8 (patch) | |
tree | a427ff9d8702ad5dbc6e5ede8851930662d010ef /sway/server.c | |
parent | Merge pull request #1638 from swaywm/swaybg-layers (diff) | |
download | sway-0c8a64942e087038806b353949c900e03fd764a8.tar.gz sway-0c8a64942e087038806b353949c900e03fd764a8.tar.zst sway-0c8a64942e087038806b353949c900e03fd764a8.zip |
Add initial layer shell skeleton
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 @@ | |||
7 | #include <wlr/render/wlr_renderer.h> | 7 | #include <wlr/render/wlr_renderer.h> |
8 | #include <wlr/render/gles2.h> | 8 | #include <wlr/render/gles2.h> |
9 | #include <wlr/types/wlr_compositor.h> | 9 | #include <wlr/types/wlr_compositor.h> |
10 | #include <wlr/types/wlr_layer_shell.h> | ||
10 | #include <wlr/types/wlr_wl_shell.h> | 11 | #include <wlr/types/wlr_wl_shell.h> |
11 | // TODO WLR: make Xwayland optional | 12 | // TODO WLR: make Xwayland optional |
12 | #include <wlr/xwayland.h> | 13 | #include <wlr/xwayland.h> |
@@ -51,6 +52,11 @@ bool server_init(struct sway_server *server) { | |||
51 | server->new_output.notify = handle_new_output; | 52 | server->new_output.notify = handle_new_output; |
52 | wl_signal_add(&server->backend->events.new_output, &server->new_output); | 53 | wl_signal_add(&server->backend->events.new_output, &server->new_output); |
53 | 54 | ||
55 | server->layer_shell = wlr_layer_shell_create(server->wl_display); | ||
56 | wl_signal_add(&server->layer_shell->events.new_surface, | ||
57 | &server->layer_shell_surface); | ||
58 | server->layer_shell_surface.notify = handle_layer_shell_surface; | ||
59 | |||
54 | server->xdg_shell_v6 = wlr_xdg_shell_v6_create(server->wl_display); | 60 | server->xdg_shell_v6 = wlr_xdg_shell_v6_create(server->wl_display); |
55 | wl_signal_add(&server->xdg_shell_v6->events.new_surface, | 61 | wl_signal_add(&server->xdg_shell_v6->events.new_surface, |
56 | &server->xdg_shell_v6_surface); | 62 | &server->xdg_shell_v6_surface); |