diff --git a/wayland-client/src/event_queue.rs b/wayland-client/src/event_queue.rs index 94674bd3747..32d268841d2 100644 --- a/wayland-client/src/event_queue.rs +++ b/wayland-client/src/event_queue.rs @@ -851,6 +851,22 @@ macro_rules! delegate_noop { } }; + // delegate_noop!(@ ExampleApp: wl_subcompositor::WlSubcompositor); + ($(@< $( const $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+ >)? $dispatch_from: ty : $interface: ty) => { + impl$(< $(const $lt $( : $clt $(+ $dlt )* )? ),+ >)? $crate::Dispatch<$interface, ()> for $dispatch_from { + fn event( + _: &mut Self, + _: &$interface, + _: <$interface as $crate::Proxy>::Event, + _: &(), + _: &$crate::Connection, + _: &$crate::QueueHandle, + ) { + unreachable!(); + } + } + }; + ($(@< $( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+ >)? $dispatch_from: ty : ignore $interface: ty) => { impl$(< $( $lt $( : $clt $(+ $dlt )* )? ),+ >)? $crate::Dispatch<$interface, ()> for $dispatch_from { fn event( @@ -864,4 +880,19 @@ macro_rules! delegate_noop { } } }; + + // delegate_noop!(@ ExampleApp: ignore wl_subcompositor::WlSubcompositor); + ($(@< $( const $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+ >)? $dispatch_from: ty : ignore $interface: ty) => { + impl$(< $( const $lt $( : $clt $(+ $dlt )* )? ),+ >)? $crate::Dispatch<$interface, ()> for $dispatch_from { + fn event( + _: &mut Self, + _: &$interface, + _: <$interface as $crate::Proxy>::Event, + _: &(), + _: &$crate::Connection, + _: &$crate::QueueHandle, + ) { + } + } + }; }