diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-04 06:19:36 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-04 07:28:47 -0500 |
commit | 1870f116ba355fd02c8cc235fe262ccb0a03976b (patch) | |
tree | 65c502a9dd4142b66765b8e0e5b39cd0da91be84 /sway/server.c | |
parent | Merge pull request #1491 from acrisci/refactor/dimension-to-size (diff) | |
download | sway-1870f116ba355fd02c8cc235fe262ccb0a03976b.tar.gz sway-1870f116ba355fd02c8cc235fe262ccb0a03976b.tar.zst sway-1870f116ba355fd02c8cc235fe262ccb0a03976b.zip |
xwayland shell
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index 6e66bc3c..2694cea0 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -40,6 +40,13 @@ bool server_init(struct sway_server *server) { | |||
40 | &server->xdg_shell_v6_surface); | 40 | &server->xdg_shell_v6_surface); |
41 | server->xdg_shell_v6_surface.notify = handle_xdg_shell_v6_surface; | 41 | server->xdg_shell_v6_surface.notify = handle_xdg_shell_v6_surface; |
42 | 42 | ||
43 | // TODO make xwayland optional | ||
44 | server->xwayland = | ||
45 | wlr_xwayland_create(server->wl_display, server->compositor); | ||
46 | wl_signal_add(&server->xwayland->events.new_surface, | ||
47 | &server->xwayland_surface); | ||
48 | server->xwayland_surface.notify = handle_xwayland_surface; | ||
49 | |||
43 | server->socket = wl_display_add_socket_auto(server->wl_display); | 50 | server->socket = wl_display_add_socket_auto(server->wl_display); |
44 | if (!sway_assert(server->socket, "Unable to open wayland socket")) { | 51 | if (!sway_assert(server->socket, "Unable to open wayland socket")) { |
45 | wlr_backend_destroy(server->backend); | 52 | wlr_backend_destroy(server->backend); |