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 committed Jun 2, 2024
1 parent 38fdeaf commit 5264306
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 5264306

Please sign in to comment.