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 {