aboutsummaryrefslogtreecommitdiff
path: root/sway/server.c
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-12-04 06:19:36 -0500
committerTony Crisci <tony@dubstepdish.com>2017-12-04 07:28:47 -0500
commit1870f116ba355fd02c8cc235fe262ccb0a03976b (patch)
tree65c502a9dd4142b66765b8e0e5b39cd0da91be84 /sway/server.c
parent7141f652594d723995aa4e9e5df850c14902a5ce (diff)
xwayland shell
Diffstat (limited to 'sway/server.c')
-rw-r--r--sway/server.c7
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) {
&server->xdg_shell_v6_surface);
server->xdg_shell_v6_surface.notify = handle_xdg_shell_v6_surface;
+ // TODO make xwayland optional
+ server->xwayland =
+ wlr_xwayland_create(server->wl_display, server->compositor);
+ wl_signal_add(&server->xwayland->events.new_surface,
+ &server->xwayland_surface);
+ server->xwayland_surface.notify = handle_xwayland_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);