fix(compositor): use as_deref() for WaylandFocus::wl_surface() comparisons

This commit is contained in:
Marco Allegretti 2026-03-10 21:28:55 +01:00
parent c90679ea7b
commit ae1d572803

View file

@ -158,7 +158,7 @@ impl CompositorHandler for WeftCompositorState {
if let Some(window) = self if let Some(window) = self
.space .space
.elements() .elements()
.find(|w| w.wl_surface().as_ref() == Some(surface)) .find(|w| w.wl_surface().as_deref() == Some(surface))
.cloned() .cloned()
{ {
window.on_commit(); window.on_commit();
@ -325,7 +325,7 @@ impl InputMethodHandler for WeftCompositorState {
self.space self.space
.elements() .elements()
.find_map(|w: &Window| { .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()) Some(w.geometry())
} else { } else {
None None