diff --git a/src/client_buffer.rs b/src/client_buffer.rs index 9374c7d..6636aa2 100644 --- a/src/client_buffer.rs +++ b/src/client_buffer.rs @@ -52,6 +52,12 @@ impl WlShmPoolHandler for ClientWlShmPool { id.set_handler(ClientWlBuffer { width, height }); slf.send_create_buffer(id, offset, width, height, stride, format); } + + fn handle_destroy(&mut self, slf: &Rc) { + slf.send_destroy(); + self.delete_id(slf); // HACK: workaround for wl-cross-domain-proxy's ID reuse trick + // (https://gitlab.freedesktop.org/wayland/wayland/-/issues/561#note_3385478) + } } pub struct ClientZwpLinuxDmabufV1;