diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-12-03 17:15:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-03 17:15:58 -0500 |
commit | c733e0858fcf9e54dd41f7b8882d5fe722bb01b4 (patch) | |
tree | 35d7016c86a5de5e662ff546ffda3394e34d6ec4 /sway/server.c | |
parent | 7141f652594d723995aa4e9e5df850c14902a5ce (diff) | |
parent | 9afcfd44c425691180a96d4e0d6673e5ac96dcce (diff) |
Merge pull request #1493 from acrisci/feature/wl-shell
basic wl_shell
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 6e66bc3c..bf5c37eb 100644 --- a/sway/server.c +++ b/sway/server.c @@ -7,6 +7,7 @@ #include <wlr/render.h> #include <wlr/render/gles2.h> #include <wlr/types/wlr_compositor.h> +#include <wlr/types/wlr_wl_shell.h> // TODO WLR: make Xwayland optional #include <wlr/xwayland.h> #include "sway/server.h" @@ -40,6 +41,11 @@ bool server_init(struct sway_server *server) { &server->xdg_shell_v6_surface); server->xdg_shell_v6_surface.notify = handle_xdg_shell_v6_surface; + server->wl_shell = wlr_wl_shell_create(server->wl_display); + wl_signal_add(&server->wl_shell->events.new_surface, + &server->wl_shell_surface); + server->wl_shell_surface.notify = handle_wl_shell_surface; + server->socket = wl_display_add_socket_auto(server->wl_display); if (!sway_assert(server->socket, "Unable to open wayland socket")) { wlr_backend_destroy(server->backend); |