Skip to content

Commit

Permalink
protocols: Add cosmic-screencopy-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Mar 11, 2024
1 parent f5e1698 commit 97f0be2
Show file tree
Hide file tree
Showing 5 changed files with 594 additions and 225 deletions.
1 change: 0 additions & 1 deletion client-toolkit/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ pub use wayland_client;
pub mod egl;
#[cfg(feature = "gl")]
pub mod gl;
pub mod screencopy;
pub mod toplevel_info;
pub mod toplevel_management;
pub mod workspace;
222 changes: 0 additions & 222 deletions client-toolkit/src/screencopy.rs

This file was deleted.

17 changes: 15 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,34 @@
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![cfg_attr(rustfmt, rustfmt_skip)]


#[macro_use]
mod protocol_macro;

pub mod screencopy {
pub mod image_source {
//! Capture interface.

#[allow(missing_docs)]
pub mod v1 {
wayland_protocol!(
"./unstable/cosmic-screencopy-unstable-v1.xml",
"./unstable/cosmic-image-source-unstable-v1.xml",
[crate::workspace::v1, crate::toplevel_info::v1]
);
}
}

pub mod screencopy {
//! Capture interface.

#[allow(missing_docs)]
pub mod v2 {
wayland_protocol!(
"./unstable/cosmic-screencopy-unstable-v2.xml",
[crate::image_source::v1]
);
}
}

pub mod toplevel_info {
//! Receive information about toplevel surfaces.

Expand Down
Loading

0 comments on commit 97f0be2

Please sign in to comment.