Add config option to disable Xwayland

This commit is contained in:
Versus Void 2017-10-06 09:41:50 +03:00
parent b2d478a418
commit decd87043f
4 changed files with 27 additions and 6 deletions

View file

@ -159,11 +159,13 @@ struct roots_desktop *desktop_create(struct roots_server *server,
&desktop->wl_shell_surface);
desktop->wl_shell_surface.notify = handle_wl_shell_surface;
desktop->xwayland = wlr_xwayland_create(server->wl_display,
desktop->compositor);
wl_signal_add(&desktop->xwayland->events.new_surface,
&desktop->xwayland_surface);
desktop->xwayland_surface.notify = handle_xwayland_surface;
if (config->xwayland) {
desktop->xwayland = wlr_xwayland_create(server->wl_display,
desktop->compositor);
wl_signal_add(&desktop->xwayland->events.new_surface,
&desktop->xwayland_surface);
desktop->xwayland_surface.notify = handle_xwayland_surface;
}
desktop->gamma_control_manager = wlr_gamma_control_manager_create(
server->wl_display);