chore: clippy
This commit is contained in:
parent
3b70bc0265
commit
0847247c33
77 changed files with 865 additions and 1029 deletions
|
|
@ -99,7 +99,7 @@ impl XdgShellHandler for State {
|
|||
});
|
||||
|
||||
if let Some(root) = maybe_root {
|
||||
let target = root.into();
|
||||
let target = root;
|
||||
let ret = self.common.popups.grab_popup(target, kind, &seat, serial);
|
||||
match ret {
|
||||
Ok(mut grab) => {
|
||||
|
|
@ -304,12 +304,10 @@ impl XdgShellHandler for State {
|
|||
if should_focus {
|
||||
Shell::set_focus(self, Some(&target), &seat, None, true);
|
||||
}
|
||||
} else {
|
||||
if let Some(pending) = shell.pending_windows.iter_mut().find(|pending| {
|
||||
pending.surface.wl_surface().as_deref() == Some(surface.wl_surface())
|
||||
}) {
|
||||
pending.fullscreen.take();
|
||||
}
|
||||
} else if let Some(pending) = shell.pending_windows.iter_mut().find(|pending| {
|
||||
pending.surface.wl_surface().as_deref() == Some(surface.wl_surface())
|
||||
}) {
|
||||
pending.fullscreen.take();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -337,12 +335,12 @@ impl XdgShellHandler for State {
|
|||
{
|
||||
let dh = self.common.display_handle.clone();
|
||||
for client in clients.values() {
|
||||
client_compositor_state(&client).blocker_cleared(self, &dh);
|
||||
client_compositor_state(client).blocker_cleared(self, &dh);
|
||||
}
|
||||
}
|
||||
|
||||
if let Some(output) = output.as_ref() {
|
||||
self.backend.schedule_render(&output);
|
||||
self.backend.schedule_render(output);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue