diff --git a/Cargo.toml b/Cargo.toml index 81836d9..3bf25d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -94,7 +94,7 @@ derive_refineable = { path = "crates/refineable/derive_refineable" } # anyhow = "1.0.86" -ashpd = { version = "0.12.1", default-features = false, features = ["async-std"] } +ashpd = { version = "0.13", default-features = false, features = ["async-io", "file_chooser", "open_uri", "settings"] } async-channel = "2.5.0" async-compression = { version = "0.4", features = ["bzip2", "gzip", "futures-io"] } async-fs = "2.1" diff --git a/crates/gpui/src/platform/layer_shell.rs b/crates/gpui/src/platform/layer_shell.rs index 9ed3fe2..31a273f 100644 --- a/crates/gpui/src/platform/layer_shell.rs +++ b/crates/gpui/src/platform/layer_shell.rs @@ -62,3 +62,9 @@ pub struct LayerShellOptions { /// How keyboard focus should be handled. pub keyboard_interactivity: KeyboardInteractivity, } + +/// An error indicating that an action failed because the compositor doesn't +/// support the required `zwlr_layer_shell_v1` protocol. +#[derive(Debug, thiserror::Error)] +#[error("Compositor doesn't support zwlr_layer_shell_v1")] +pub struct LayerShellNotSupportedError;