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

refactor(workspaces): avoid sending unknown update info

This commit is contained in:
Jake Stanger 2023-12-31 00:43:36 +00:00
parent 1b54de98e6
commit 967801dc32
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
4 changed files with 15 additions and 8 deletions

View file

@ -84,7 +84,6 @@ impl EventClient {
},
|workspace| {
// there may be another type of update so dispatch that regardless of focus change
send!(tx, WorkspaceUpdate::Update(workspace.clone()));
if !workspace.visibility.is_focused() {
Self::send_focus_change(&mut prev_workspace, workspace, &tx);
}