Skip to content

Commit

Permalink
Add Clone derive for CompositorState
Browse files Browse the repository at this point in the history
Having the option to store the compositor state in multiple places makes
functionality like region creation a little simpler, without having to
pass the state through everywhere.
  • Loading branch information
chrisduerr authored and wash2 committed Jun 3, 2024
1 parent 3386ad0 commit 3905146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compositor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl SurfaceDataExt for SurfaceData {
}
}

#[derive(Debug)]
#[derive(Clone, Debug)]
pub struct CompositorState {
wl_compositor: wl_compositor::WlCompositor,
}
Expand Down

0 comments on commit 3905146

Please sign in to comment.