fix(compositor): add missing BufferHandler supertrait impl for DmabufHandler

This commit is contained in:
Marco Allegretti 2026-03-10 21:23:33 +01:00
parent 3ebe50ef31
commit e981044c43

View file

@ -17,13 +17,14 @@ use smithay::{
calloop::{LoopHandle, LoopSignal}, calloop::{LoopHandle, LoopSignal},
wayland_server::{ wayland_server::{
backend::{ClientData, ClientId, DisconnectReason}, backend::{ClientData, ClientId, DisconnectReason},
protocol::{wl_output::WlOutput, wl_surface::WlSurface}, protocol::{wl_buffer::WlBuffer, wl_output::WlOutput, wl_surface::WlSurface},
Client, DisplayHandle, Client, DisplayHandle,
}, },
}, },
utils::{Logical, Point, Rectangle}, utils::{Logical, Point, Rectangle},
wayland::{ wayland::{
compositor::{CompositorClientState, CompositorHandler, CompositorState}, compositor::{CompositorClientState, CompositorHandler, CompositorState},
buffer::BufferHandler,
cursor_shape::CursorShapeManagerState, cursor_shape::CursorShapeManagerState,
dmabuf::{DmabufGlobal, DmabufHandler, DmabufState, ImportNotifier}, dmabuf::{DmabufGlobal, DmabufHandler, DmabufState, ImportNotifier},
input_method::{InputMethodHandler, InputMethodManagerState, PopupSurface as ImPopupSurface}, input_method::{InputMethodHandler, InputMethodManagerState, PopupSurface as ImPopupSurface},
@ -274,6 +275,12 @@ impl SeatHandler for WeftCompositorState {
delegate_seat!(WeftCompositorState); delegate_seat!(WeftCompositorState);
// --- BufferHandler (required supertrait for DmabufHandler) ---
impl BufferHandler for WeftCompositorState {
fn buffer_destroyed(&mut self, _buffer: &WlBuffer) {}
}
// --- DmabufHandler --- // --- DmabufHandler ---
impl DmabufHandler for WeftCompositorState { impl DmabufHandler for WeftCompositorState {