mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-03-27 01:13:09 +00:00
fix(compositor): use as_deref() for WaylandFocus::wl_surface() comparisons
This commit is contained in:
parent
c90679ea7b
commit
ae1d572803
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue