GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
fix(bar): tiling direction component updates correctly (#206)
blamb502af851396
diff --git a/GlazeWM.Bar/Components/TilingDirectionComponentViewModel.cs b/GlazeWM.Bar/Components/TilingDirectionComponentViewModel.csindex dac20e2c..dd6f93a7 100644--- a/GlazeWM.Bar/Components/TilingDirectionComponentViewModel.cs+++ b/GlazeWM.Bar/Components/TilingDirectionComponentViewModel.cs@@ -37,7 +37,9 @@ namespace GlazeWM.Bar.ComponentsBarViewModel parentViewModel,TilingDirectionComponentConfig config) : base(parentViewModel, config){- _bus.Events.OfType<LayoutChangedEvent>().Subscribe(_ =>+ _bus.Events.Where(+ (@event) => @event is LayoutChangedEvent or FocusChangedEvent+ ).Subscribe((_) =>_dispatcher.Invoke(() => OnPropertyChanged(nameof(TilingDirectionString))));}diff --git a/GlazeWM.Bootstrapper/sample-config.yaml b/GlazeWM.Bootstrapper/sample-config.yamlindex aa8ec81b..c7338cb8 100644--- a/GlazeWM.Bootstrapper/sample-config.yaml+++ b/GlazeWM.Bootstrapper/sample-config.yaml@@ -24,6 +24,8 @@ bar:- type: "window title"components_right:- type: "tiling direction"+ text_horizontal: "⮂"+ text_vertical: "⮁"background: "#ffffff33"margin: "0 4px"padding: "0 8px"