Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat: disable `show_floating_on_top` and `cursor_follows_focus` by default (#226)

lars-berger753073a91388
diff --git a/GlazeWM.Bootstrapper/sample-config.yaml b/GlazeWM.Bootstrapper/sample-config.yaml
index c76fc43d..a7b268d9 100644
--- a/GlazeWM.Bootstrapper/sample-config.yaml
+++ b/GlazeWM.Bootstrapper/sample-config.yaml
@@ -4,8 +4,7 @@ gaps:
general:
# Whether to show floating windows as always on top.
- show_floating_on_top: true
- cursor_follows_focus: true
+ show_floating_on_top: false
bar:
height: "30px"
diff --git a/GlazeWM.Domain/UserConfigs/GeneralConfig.cs b/GlazeWM.Domain/UserConfigs/GeneralConfig.cs
index 9d81d267..ca61e247 100644
--- a/GlazeWM.Domain/UserConfigs/GeneralConfig.cs
+++ b/GlazeWM.Domain/UserConfigs/GeneralConfig.cs
@@ -5,10 +5,11 @@ namespace GlazeWM.Domain.UserConfigs
/// <summary>
/// Whether to show floating windows as always on top.
/// </summary>
- public bool ShowFloatingOnTop { get; set; } = true;
+ public bool ShowFloatingOnTop { get; set; }
/// <summary>
/// Center the cursor in the middle of a newly focused window
+ /// TODO: Not officially released because implementation is buggy. Use at own risk.
/// </summary>
- public bool CursorFollowsFocus { get; set; } = true;
+ public bool CursorFollowsFocus { get; set; }
}
}
diff --git a/GlazeWM.Domain/UserConfigs/UserConfig.cs b/GlazeWM.Domain/UserConfigs/UserConfig.cs
index 00efc696..4d4c9d34 100644
--- a/GlazeWM.Domain/UserConfigs/UserConfig.cs
+++ b/GlazeWM.Domain/UserConfigs/UserConfig.cs
@@ -5,16 +5,16 @@ namespace GlazeWM.Domain.UserConfigs
{
public class UserConfig
{
- public GapsConfig Gaps { get; set; } = new GapsConfig();
+ public GapsConfig Gaps { get; set; } = new();
- public GeneralConfig General { get; set; } = new GeneralConfig();
+ public GeneralConfig General { get; set; } = new();
public BarConfig Bar { get; set; } = new();
public List<MultiBarConfig> Bars { get; set; } = new();
public List<BarConfig> BarConfigs => Bars.Count == 0
- ? new List<BarConfig> { Bar }
+ ? new() { Bar }
: Bars.Cast<BarConfig>().ToList();
public List<WorkspaceConfig> Workspaces { get; set; } = new();