mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-04-19 19:34:24 +02:00
fix(launcher): not clearing focused state when closing window
Fixes #213. Fixes partially #225.
This commit is contained in:
parent
06251e293e
commit
87dd7646fc
1 changed files with 5 additions and 1 deletions
|
@ -381,8 +381,12 @@ impl Module<gtk::Box> for LauncherModule {
|
|||
}
|
||||
}
|
||||
}
|
||||
LauncherUpdate::RemoveWindow(app_id, _) => {
|
||||
LauncherUpdate::RemoveWindow(app_id, win_id) => {
|
||||
debug!("Removing window {win_id} with id {app_id}");
|
||||
|
||||
if let Some(button) = buttons.get(&app_id) {
|
||||
button.set_focused(false);
|
||||
|
||||
let mut menu_state = write_lock!(button.menu_state);
|
||||
menu_state.num_windows -= 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue