From 4eb21f2dc64f3a54f93e5d3bd1e2a8b5cd5b607e Mon Sep 17 00:00:00 2001 From: lars-berger Date: Thu, 14 Sep 2023 02:47:06 +0800 Subject: [PATCH] fix: workspace component button correctly focuses target workspace (#395) --- 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()); } } }