diff options
author | 2017-11-11 18:06:50 -0500 | |
---|---|---|
committer | 2017-11-11 18:06:50 -0500 | |
commit | 0c8491f7d0c735299a25f0ab929f5d1e0866b929 (patch) | |
tree | 69fc808ce6b8ceda33e8fadcf7cbbc10b892ca00 /sway/server.c | |
parent | Wire up output frame loop (diff) | |
download | sway-0c8491f7d0c735299a25f0ab929f5d1e0866b929.tar.gz sway-0c8491f7d0c735299a25f0ab929f5d1e0866b929.tar.zst sway-0c8491f7d0c735299a25f0ab929f5d1e0866b929.zip |
Initial (awful) pass on xdg shell support
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index a7f47af3..940f28b3 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -34,6 +34,11 @@ bool server_init(struct sway_server *server) { | |||
34 | wl_signal_add(&server->backend->events.output_remove, | 34 | wl_signal_add(&server->backend->events.output_remove, |
35 | &server->output_remove); | 35 | &server->output_remove); |
36 | 36 | ||
37 | server->xdg_shell_v6 = wlr_xdg_shell_v6_create(server->wl_display); | ||
38 | wl_signal_add(&server->xdg_shell_v6->events.new_surface, | ||
39 | &server->xdg_shell_v6_surface); | ||
40 | server->xdg_shell_v6_surface.notify = handle_xdg_shell_v6_surface; | ||
41 | |||
37 | server->socket = wl_display_add_socket_auto(server->wl_display); | 42 | server->socket = wl_display_add_socket_auto(server->wl_display); |
38 | if (!sway_assert(server->socket, "Unable to open wayland socket")) { | 43 | if (!sway_assert(server->socket, "Unable to open wayland socket")) { |
39 | wlr_backend_destroy(server->backend); | 44 | wlr_backend_destroy(server->backend); |