Skip to content

Commit

Permalink
lib: Add cosmic-output-management
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Apr 26, 2024
1 parent 7cefbdd commit 283547f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"]
12 changes: 12 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 283547f

Please sign in to comment.