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:
parent
7aa0942ec1
commit
98cca4f3b7
5 changed files with 33 additions and 7 deletions
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue