mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 23:01:30 +11:00
Improve unix backend env var docs
This commit is contained in:
parent
789598fa84
commit
eaa92a4282
|
@ -19,8 +19,8 @@ pub mod x11;
|
||||||
/// Environment variable that indicates a backend preference
|
/// Environment variable that indicates a backend preference
|
||||||
/// `WINIT_UNIX_BACKEND=x11` : Will try to use an X11 backend
|
/// `WINIT_UNIX_BACKEND=x11` : Will try to use an X11 backend
|
||||||
/// `WINIT_UNIX_BACKEND=wayland` : Will try to use a wayland backend
|
/// `WINIT_UNIX_BACKEND=wayland` : Will try to use a wayland backend
|
||||||
/// When used is selected backends will not fallback to one another
|
/// When the variable is present the indicated backend will not fallback to another
|
||||||
/// (Current default behaviour is wayland, fallback to X)
|
/// (Current default behaviour, without the env var, is try wayland then fallback to X)
|
||||||
const BACKEND_PREFERENCE_ENV_VAR: &str = "WINIT_UNIX_BACKEND";
|
const BACKEND_PREFERENCE_ENV_VAR: &str = "WINIT_UNIX_BACKEND";
|
||||||
|
|
||||||
#[derive(Clone, Default)]
|
#[derive(Clone, Default)]
|
||||||
|
|
Loading…
Reference in a new issue