1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-03 19:51:03 +02:00

refactor: fix new clippy warnings

This commit is contained in:
Jake Stanger 2023-06-29 16:57:47 +01:00
parent 27f920d012
commit cc181a8b6d
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
13 changed files with 42 additions and 43 deletions

View file

@ -117,7 +117,8 @@ impl Module<gtk::Box> for LauncherModule {
let tx = tx2;
let (mut wlrx, handles) = {
let wl = wayland::get_client().await;
let wl = wayland::get_client();
let wl = lock!(wl);
wl.subscribe_toplevels()
};
@ -270,7 +271,7 @@ impl Module<gtk::Box> for LauncherModule {
} else {
send_async!(tx, ModuleUpdateEvent::ClosePopup);
let wl = wayland::get_client().await;
let wl = wayland::get_client();
let items = lock!(items);
let id = match event {
@ -291,13 +292,16 @@ impl Module<gtk::Box> for LauncherModule {
{
debug!("Focusing window {id}: {}", window.name);
let seat = wl.get_seats().pop().expect("Failed to get Wayland seat");
let seat = lock!(wl)
.get_seats()
.pop()
.expect("Failed to get Wayland seat");
window.focus(&seat);
}
}
// roundtrip to immediately send activate event
wl.roundtrip();
lock!(wl).roundtrip();
}
}
});