diff --git a/libwayshot/examples/waymirror-egl/src/dispatch.rs b/libwayshot/examples/waymirror-egl/src/dispatch.rs index 80b3050c..27f7ac41 100644 --- a/libwayshot/examples/waymirror-egl/src/dispatch.rs +++ b/libwayshot/examples/waymirror-egl/src/dispatch.rs @@ -111,7 +111,7 @@ impl Dispatch for WaylandEGLState { state.wl_surface.clone().unwrap().commit(); } } - xdg_toplevel::Event::Close {} => { + xdg_toplevel::Event::Close => { state.running = false; } _ => {} diff --git a/libwayshot/examples/waymirror.rs b/libwayshot/examples/waymirror.rs index 0e63ed8f..017ea99e 100644 --- a/libwayshot/examples/waymirror.rs +++ b/libwayshot/examples/waymirror.rs @@ -159,7 +159,7 @@ impl Dispatch for State { _: &Connection, _: &QueueHandle, ) { - if let xdg_toplevel::Event::Close {} = event { + if let xdg_toplevel::Event::Close = event { state.running = false; } }