Skip to content

Commit

Permalink
[libwayshot] description field added to OutputInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers authored and Shinyzenith committed Aug 5, 2023
1 parent 7e517cc commit 91cb43d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libwayshot/src/dispatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ impl Dispatch<WlRegistry, ()> for OutputCaptureState {
state.outputs.push(OutputInfo {
wl_output: output,
name: "".to_string(),
description: String::new(),
transform: wl_output::Transform::Normal,
dimensions: OutputPositioning {
x: 0,
Expand Down Expand Up @@ -89,6 +90,9 @@ impl Dispatch<WlOutput, ()> for OutputCaptureState {
wl_output::Event::Name { name } => {
output.name = name;
}
wl_output::Event::Description { description } => {
output.description = description;
}
wl_output::Event::Geometry {
transform: WEnum::Value(transform),
..
Expand Down
1 change: 1 addition & 0 deletions libwayshot/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use wayland_client::protocol::{wl_output, wl_output::WlOutput};
pub struct OutputInfo {
pub wl_output: WlOutput,
pub name: String,
pub description: String,
pub transform: wl_output::Transform,
pub dimensions: OutputPositioning,
}
Expand Down

0 comments on commit 91cb43d

Please sign in to comment.