From e981044c43993b6c8d03ae3a71cd3186690eeb3d Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Tue, 10 Mar 2026 21:23:33 +0100 Subject: [PATCH] fix(compositor): add missing BufferHandler supertrait impl for DmabufHandler --- crates/weft-compositor/src/state.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/weft-compositor/src/state.rs b/crates/weft-compositor/src/state.rs index 1d70d79..566ed3d 100644 --- a/crates/weft-compositor/src/state.rs +++ b/crates/weft-compositor/src/state.rs @@ -17,13 +17,14 @@ use smithay::{ calloop::{LoopHandle, LoopSignal}, wayland_server::{ backend::{ClientData, ClientId, DisconnectReason}, - protocol::{wl_output::WlOutput, wl_surface::WlSurface}, + protocol::{wl_buffer::WlBuffer, wl_output::WlOutput, wl_surface::WlSurface}, Client, DisplayHandle, }, }, utils::{Logical, Point, Rectangle}, wayland::{ compositor::{CompositorClientState, CompositorHandler, CompositorState}, + buffer::BufferHandler, cursor_shape::CursorShapeManagerState, dmabuf::{DmabufGlobal, DmabufHandler, DmabufState, ImportNotifier}, input_method::{InputMethodHandler, InputMethodManagerState, PopupSurface as ImPopupSurface}, @@ -274,6 +275,12 @@ impl SeatHandler for WeftCompositorState { delegate_seat!(WeftCompositorState); +// --- BufferHandler (required supertrait for DmabufHandler) --- + +impl BufferHandler for WeftCompositorState { + fn buffer_destroyed(&mut self, _buffer: &WlBuffer) {} +} + // --- DmabufHandler --- impl DmabufHandler for WeftCompositorState {