From ae1d57280372257af55dc98080ca1353a1576dce Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Tue, 10 Mar 2026 21:28:55 +0100 Subject: [PATCH] fix(compositor): use as_deref() for WaylandFocus::wl_surface() comparisons --- crates/weft-compositor/src/state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/weft-compositor/src/state.rs b/crates/weft-compositor/src/state.rs index 3fdf986..c391ddf 100644 --- a/crates/weft-compositor/src/state.rs +++ b/crates/weft-compositor/src/state.rs @@ -158,7 +158,7 @@ impl CompositorHandler for WeftCompositorState { if let Some(window) = self .space .elements() - .find(|w| w.wl_surface().as_ref() == Some(surface)) + .find(|w| w.wl_surface().as_deref() == Some(surface)) .cloned() { window.on_commit(); @@ -325,7 +325,7 @@ impl InputMethodHandler for WeftCompositorState { self.space .elements() .find_map(|w: &Window| { - if w.wl_surface().as_ref() == Some(parent_surface) { + if w.wl_surface().as_deref() == Some(parent_surface) { Some(w.geometry()) } else { None