aboutsummaryrefslogtreecommitdiff
path: root/src/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlers')
-rw-r--r--src/handlers/compositor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs
index 2afb8fe8..d12140e6 100644
--- a/src/handlers/compositor.rs
+++ b/src/handlers/compositor.rs
@@ -54,7 +54,7 @@ impl CompositorHandler for State {
.buffer
.as_ref()
.and_then(|assignment| match assignment {
- BufferAssignment::NewBuffer(buffer) => get_dmabuf(buffer).ok(),
+ BufferAssignment::NewBuffer(buffer) => get_dmabuf(buffer).cloned().ok(),
_ => None,
})
});