From 22ea726386823f693948a7bf8e34fea45fb42a9e Mon Sep 17 00:00:00 2001 From: Lars Berger Date: Thu, 14 Sep 2023 01:05:58 +0800 Subject: [PATCH] fix: workspace button click correctly focuses --- GlazeWM.Bar/Components/WorkspacesComponentViewModel.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GlazeWM.Bar/Components/WorkspacesComponentViewModel.cs b/GlazeWM.Bar/Components/WorkspacesComponentViewModel.cs index 772be35c4..629288dee 100644 --- a/GlazeWM.Bar/Components/WorkspacesComponentViewModel.cs +++ b/GlazeWM.Bar/Components/WorkspacesComponentViewModel.cs @@ -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; @@ -90,6 +91,8 @@ or FocusedContainerMovedEvent public void FocusWorkspace(string workspaceName) { _bus.Invoke(new FocusWorkspaceCommand(workspaceName)); + _bus.Invoke(new RedrawContainersCommand()); + _bus.Invoke(new SyncNativeFocusCommand()); } } }