mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 14:20:05 -04:00
Rename unix backend env var
Rename inline with stricter behaviour Add docs explaining behaviour
This commit is contained in:
@@ -16,9 +16,12 @@ mod dlopen;
|
|||||||
pub mod wayland;
|
pub mod wayland;
|
||||||
pub mod x11;
|
pub mod x11;
|
||||||
|
|
||||||
/// Environment variable that indicates the X11 backend should be used
|
/// Environment variable that indicates a backend preference
|
||||||
/// even if Wayland is available. In this case XWayland will be used.
|
/// `WINIT_UNIX_BACKEND=x11` : Will try to use an X11 backend
|
||||||
const BACKEND_PREFERENCE_ENV_VAR: &str = "WINIT_PREFER_UNIX_BACKEND";
|
/// `WINIT_UNIX_BACKEND=wayland` : Will try to use a wayland backend
|
||||||
|
/// When used is selected backends will not fallback to one another
|
||||||
|
/// (Current default behaviour is wayland, fallback to X)
|
||||||
|
const BACKEND_PREFERENCE_ENV_VAR: &str = "WINIT_UNIX_BACKEND";
|
||||||
|
|
||||||
#[derive(Clone, Default)]
|
#[derive(Clone, Default)]
|
||||||
pub struct PlatformSpecificWindowBuilderAttributes {
|
pub struct PlatformSpecificWindowBuilderAttributes {
|
||||||
|
|||||||
Reference in New Issue
Block a user