chore: Fix clippy lints

This commit is contained in:
Ian Douglas Scott 2026-08-05 01:47:07 -07:00 • committed by Ian Douglas Scott
parent c423e82820
commit 861a460e6c
2 changed files with 10 additions and 12 deletions

View file

@ -3054,7 +3054,7 @@ pub fn update_output_image_copy_cursor_position(
position: Point<f64, Global>,
) {
let output_geometry = output.geometry();
for session in cursor_sessions_for_output(&shell, &output) {
for session in cursor_sessions_for_output(shell, output) {
if let Some(cursor_geometry) = seat.cursor_geometry(
(position - output_geometry.loc.to_f64())
.as_logical()

View file

@ -333,17 +333,15 @@ impl XdgShellHandler for State {
if let Some(ref grab) = grab {
if grab.has_ended() {
should_ungrab = true;
} else if let Some(target) = grab.current_grab() {
if let Some(wl_surface) = target.wl_surface() {
if wl_surface.as_ref() == surface.wl_surface()
|| smithay::desktop::PopupManager::popups_for_surface(
surface.wl_surface(),
)
.any(|(p, _)| p.wl_surface() == wl_surface.as_ref())
{
should_ungrab = true;
}
}
} else if let Some(target) = grab.current_grab()
&& let Some(wl_surface) = target.wl_surface()
&& (wl_surface.as_ref() == surface.wl_surface()
|| smithay::desktop::PopupManager::popups_for_surface(
surface.wl_surface(),
)
.any(|(p, _)| p.wl_surface() == wl_surface.as_ref()))
{
should_ungrab = true;
}
}
if should_ungrab {