From 735f5cc9f1518c256785d42f3d21ed5c68b11711 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Sat, 29 Apr 2023 22:10:13 +0100 Subject: [PATCH] fix(launcher): crash when focusing window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #41 🎉 --- src/modules/launcher/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/launcher/mod.rs b/src/modules/launcher/mod.rs index c396199..28af6cf 100644 --- a/src/modules/launcher/mod.rs +++ b/src/modules/launcher/mod.rs @@ -268,6 +268,8 @@ impl Module for LauncherModule { }, ); } else { + send_async!(tx, ModuleUpdateEvent::ClosePopup); + let wl = wayland::get_client().await; let items = lock!(items); @@ -444,10 +446,6 @@ impl Module 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(); - } }); }