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

@ -168,9 +168,13 @@ pub fn init_backend(
}
}
// start x11
let primary = *state.backend.kms().primary_node.read().unwrap();
state.launch_xwayland(primary);
if state.common.with_xwayland {
// start x11
let primary = *state.backend.kms().primary_node.read().unwrap();
state.launch_xwayland(primary);
} else {
state.notify_ready();
}
Ok(())
}

View file

@ -241,7 +241,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();
}
Ok(())
}

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()