mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-15 06:59:43 -05:00
Make xwayland compile-time optional
This commit is contained in:
parent
decd87043f
commit
9cab66f0f9
7 changed files with 57 additions and 28 deletions
|
|
@ -159,6 +159,7 @@ struct roots_desktop *desktop_create(struct roots_server *server,
|
|||
&desktop->wl_shell_surface);
|
||||
desktop->wl_shell_surface.notify = handle_wl_shell_surface;
|
||||
|
||||
#ifdef HAS_XWAYLAND
|
||||
if (config->xwayland) {
|
||||
desktop->xwayland = wlr_xwayland_create(server->wl_display,
|
||||
desktop->compositor);
|
||||
|
|
@ -166,6 +167,7 @@ struct roots_desktop *desktop_create(struct roots_server *server,
|
|||
&desktop->xwayland_surface);
|
||||
desktop->xwayland_surface.notify = handle_xwayland_surface;
|
||||
}
|
||||
#endif
|
||||
|
||||
desktop->gamma_control_manager = wlr_gamma_control_manager_create(
|
||||
server->wl_display);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue