feat: add --no-xwayland argument for running without Xwayland

This leaves the default behavior in place. When --no-xwayland
is not passed, Xwayland is started. If it is passed, then
starting Xwayland is skipped.
This commit is contained in:
RoyalOughtness 2026-01-24 16:30:47 -08:00 committed by Jacob Kauffmann
parent 7aa0942ec1
commit 98cca4f3b7
5 changed files with 33 additions and 7 deletions

View file

@ -384,7 +384,12 @@ pub fn init_backend(
}
state.common.refresh();
}
state.launch_xwayland(None);
if state.common.with_xwayland {
state.launch_xwayland(None);
} else {
state.notify_ready();
}
event_loop
.handle()