Skip to content

Commit

Permalink
fix(launcher): crash when focusing window
Browse files Browse the repository at this point in the history
Fixes #41 πŸŽ‰
  • Loading branch information
JakeStanger committed May 1, 2023
1 parent b3beb0d commit a452fdc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/launcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ impl Module<gtk::Box> for LauncherModule {
},
);
} else {
send_async!(tx, ModuleUpdateEvent::ClosePopup);

let wl = wayland::get_client().await;
let items = lock!(items);

Expand Down Expand Up @@ -444,10 +446,6 @@ impl Module<gtk::Box> for LauncherModule {
let tx = controller_tx.clone();
button.connect_clicked(move |_| {
try_send!(tx, ItemEvent::FocusWindow(win.id));

if let Some(win) = button.window() {
win.hide();
}
});
}

Expand Down

0 comments on commit a452fdc

Please sign in to comment.