Skip to content

Commit

Permalink
Fix crash in simple_window example
Browse files Browse the repository at this point in the history
We need to handle or ignore events from `wl_shm` and `wl_surface`, since
the server does in fact produce events for those.
  • Loading branch information
ids1024 committed Jul 25, 2023
1 parent 5774a01 commit 4d83b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wayland-client/examples/simple_window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ impl Dispatch<wl_registry::WlRegistry, ()> 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);

Expand Down

0 comments on commit 4d83b22

Please sign in to comment.