From 5264306c306fc10da6c056acaea66d88c7c0542b Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sun, 2 Jun 2024 19:44:55 +0200 Subject: [PATCH] Add `Clone` derive for `CompositorState` 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. --- src/compositor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor.rs b/src/compositor.rs index e3c57a896..a8bfd8224 100644 --- a/src/compositor.rs +++ b/src/compositor.rs @@ -87,7 +87,7 @@ impl SurfaceDataExt for SurfaceData { } } -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct CompositorState { wl_compositor: wl_compositor::WlCompositor, }