Skip to content

Commit

Permalink
fix: workspace component button correctly focuses target workspace (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger authored and AryanSolanki637 committed Sep 18, 2023
1 parent 0ca2842 commit 4eb21f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions GlazeWM.Bar/Components/WorkspacesComponentViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Windows.Input;
using System.Windows.Threading;
using GlazeWM.Bar.Common;
using GlazeWM.Domain.Containers.Commands;
using GlazeWM.Domain.Containers.Events;
using GlazeWM.Domain.Monitors;
using GlazeWM.Domain.UserConfigs;
Expand Down Expand Up @@ -90,6 +91,8 @@ or FocusedContainerMovedEvent
public void FocusWorkspace(string workspaceName)
{
_bus.Invoke(new FocusWorkspaceCommand(workspaceName));
_bus.Invoke(new RedrawContainersCommand());
_bus.Invoke(new SyncNativeFocusCommand());
}
}
}

0 comments on commit 4eb21f2

Please sign in to comment.