refactor: disable wayland in winit shell by default
This commit is contained in:
parent
16f14793c7
commit
dcdc6c1410
2 changed files with 10 additions and 10 deletions
|
|
@ -14,14 +14,6 @@ keywords.workspace = true
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["x11", "wayland", "wayland-dlopen"]
|
|
||||||
debug = ["iced_debug/enable"]
|
|
||||||
sysinfo = ["dep:sysinfo"]
|
|
||||||
unconditional-rendering = []
|
|
||||||
linux-theme-detection = ["dep:mundy", "mundy/async-io", "mundy/color-scheme"]
|
|
||||||
x11 = ["winit/x11"]
|
|
||||||
system = ["sysinfo"]
|
|
||||||
program = []
|
|
||||||
wayland = [
|
wayland = [
|
||||||
"winit/wayland",
|
"winit/wayland",
|
||||||
"sctk",
|
"sctk",
|
||||||
|
|
@ -34,6 +26,14 @@ wayland = [
|
||||||
"xkeysym",
|
"xkeysym",
|
||||||
"wayland-csd-adwaita",
|
"wayland-csd-adwaita",
|
||||||
]
|
]
|
||||||
|
default = ["x11", "wayland-dlopen"]
|
||||||
|
debug = ["iced_debug/enable"]
|
||||||
|
sysinfo = ["dep:sysinfo"]
|
||||||
|
unconditional-rendering = []
|
||||||
|
linux-theme-detection = ["dep:mundy", "mundy/async-io", "mundy/color-scheme"]
|
||||||
|
x11 = ["winit/x11"]
|
||||||
|
system = ["sysinfo"]
|
||||||
|
program = []
|
||||||
wayland-dlopen = ["winit/wayland-dlopen"]
|
wayland-dlopen = ["winit/wayland-dlopen"]
|
||||||
wayland-csd-adwaita = ["winit/wayland-csd-adwaita"]
|
wayland-csd-adwaita = ["winit/wayland-csd-adwaita"]
|
||||||
multi-window = ["iced_runtime/multi-window"]
|
multi-window = ["iced_runtime/multi-window"]
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ impl PlatformSpecific {
|
||||||
) {
|
) {
|
||||||
match action {
|
match action {
|
||||||
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
#[cfg(all(feature = "wayland", target_os = "linux"))]
|
||||||
platform_specific::Action::Wayland(a) => {
|
iced_runtime::platform_specific::Action::Wayland(a) => {
|
||||||
self.send_wayland(wayland::Action::Action(a));
|
self.send_wayland(wayland::Action::Action(a));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -106,7 +106,7 @@ impl PlatformSpecific {
|
||||||
wayland_display_handle.display.as_ptr().cast(),
|
wayland_display_handle.display.as_ptr().cast(),
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
Connection::from_backend(backend)
|
sctk::reexports::client::Connection::from_backend(backend)
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue