From b004d5007cca051bab4e9b8eb8b3471deacc9512 Mon Sep 17 00:00:00 2001 From: Jake Stanger Date: Sat, 13 Jan 2024 17:15:19 +0000 Subject: [PATCH] fix(launcher): favourites not focused when opened Fixes #225 --- src/modules/launcher/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/launcher/mod.rs b/src/modules/launcher/mod.rs index 3cd6dbf5..764176f0 100644 --- a/src/modules/launcher/mod.rs +++ b/src/modules/launcher/mod.rs @@ -325,10 +325,11 @@ impl Module for LauncherModule { glib_recv!(rx, event => { match event { LauncherUpdate::AddItem(item) => { - debug!("Adding item with id {}", item.app_id); + debug!("Adding item with id '{}' to the bar: {item:?}", item.app_id); if let Some(button) = buttons.get(&item.app_id) { button.set_open(true); + button.set_focused(item.open_state.is_focused()); } else { let button = ItemButton::new( &item,