Skip to content

Commit

Permalink
fix(workspaces): prevent crash when clicking current workspace (#733)
Browse files Browse the repository at this point in the history
* fix(workspaces): prevent crash on hyprland error

* fix(workspaces): typo in warning message

* refactor: fix format

---------

Co-authored-by: Leshu <[email protected]>
  • Loading branch information
Leshuguita and Leshuguita authored Sep 24, 2024
1 parent 1a4f157 commit e08027f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/workspaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ impl Module<gtk::Box> for WorkspacesModule {
trace!("Setting up UI event handler");

while let Some(name) = rx.recv().await {
client.focus(name)?;
if let Err(e) = client.focus(name.clone()) {
warn!("Couldn't focus workspace '{name}': {e:#}");
};
}

Ok::<(), Report>(())
Expand Down

0 comments on commit e08027f

Please sign in to comment.