diff --git a/Cargo.toml b/Cargo.toml index a9f6c9dd4f..24be902f6c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,6 +15,7 @@ readme = "README.md" wayland-scanner = "0.31.0" wayland-backend = "0.3.1" wayland-protocols = "0.31.0" +wayland-protocols-wlr = "0.2.0" wayland-client = { version = "0.31.1", optional = true } wayland-server = { version = "0.31.0", optional = true } bitflags = "2.4" @@ -30,8 +31,8 @@ memfd = "0.6.1" [features] default = ["client", "server"] -client = ["wayland-client", "wayland-protocols/client"] -server = ["wayland-server", "wayland-protocols/server"] +client = ["wayland-client", "wayland-protocols/client", "wayland-protocols-wlr/client"] +server = ["wayland-server", "wayland-protocols/server", "wayland-protocols-wlr/server"] [workspace] members = ["client-toolkit"] diff --git a/src/lib.rs b/src/lib.rs index d314c8f19a..228cece518 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -41,6 +41,18 @@ pub mod screencopy { } } +pub mod output_management { + //! Output management interface. + + #[allow(missing_docs)] + pub mod v1 { + wayland_protocol!( + "./unstable/cosmic-output-management-unstable-v1.xml", + [wayland_protocols_wlr::output_management::v1] + ); + } +} + pub mod toplevel_info { //! Receive information about toplevel surfaces.