From 4d83b223dca120a1315bd7b63f2ea99d8e24abad Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Mon, 24 Jul 2023 17:16:07 -0700 Subject: [PATCH] Fix crash in `simple_window` example We need to handle or ignore events from `wl_shm` and `wl_surface`, since the server does in fact produce events for those. --- wayland-client/examples/simple_window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wayland-client/examples/simple_window.rs b/wayland-client/examples/simple_window.rs index 8c09f03e398..2498fba2d27 100644 --- a/wayland-client/examples/simple_window.rs +++ b/wayland-client/examples/simple_window.rs @@ -111,8 +111,8 @@ impl Dispatch for State { // Ignore events from these object types in this example. delegate_noop!(State: wl_compositor::WlCompositor); -delegate_noop!(State: wl_surface::WlSurface); -delegate_noop!(State: wl_shm::WlShm); +delegate_noop!(State: ignore wl_surface::WlSurface); +delegate_noop!(State: ignore wl_shm::WlShm); delegate_noop!(State: wl_shm_pool::WlShmPool); delegate_noop!(State: wl_buffer::WlBuffer);