Skip to content

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

feat: added more window class names to ignore when registering

Larsfda7794d3c92
diff --git a/LarsWM/UserConfig/UserConfigService.cs b/LarsWM/UserConfig/UserConfigService.cs
index 036dd5a3..90d66ff2 100644
--- a/LarsWM/UserConfig/UserConfigService.cs
+++ b/LarsWM/UserConfig/UserConfigService.cs
@@ -6,12 +6,36 @@ namespace LarsWM.UserConfig
{
public class UserConfigService
{
+ // TODO: allow regular expressions
+ // eg. for WMP's "now playing" toolbar: StartsWith("WMP9MediaBarFlyout"))
public static string[] WindowClassesToIgnore = new string[] {
+ // Tray on primary screen
+ "Shell_TrayWnd",
+ // Trays on secondary screens
+ "Shell_SecondaryTrayWnd",
+ // ??
"TaskManagerWindow",
+ // Microsoft Text Framework service IME
"MSCTFIME UI",
+ // Desktop window (holds wallpaper & desktop icons)
"SHELLDLL_DefView",
+ // Background for lock screen
"LockScreenBackstopFrame",
+ // ??
"Progman",
+ // Windows 7 open Start Menu
+ "DV2ControlHost",
+ // Some Windows 8 thing
+ "Shell_CharmWindow",
+
+ /*
+ * Consider adding:
+ * "MsgrIMEWindowClass", // Window live messenger notification
+ * "SysShadow", // Windows live messenger shadow-hack
+ * "Button", // UI component, e.g. Start Menu button
+ * "Frame Alternate Owner", // Edge
+ * "MultitaskingViewFrame", // The original Win + Tab view
+ */
};
public static string[] ProcessNamesToIgnore = new string[] {
diff --git a/LarsWM/WindowManager.cs b/LarsWM/WindowManager.cs
index f52d0749..0d7a3582 100644
--- a/LarsWM/WindowManager.cs
+++ b/LarsWM/WindowManager.cs
@@ -69,7 +69,6 @@ namespace LarsWM
var process = Process.GetProcesses().FirstOrDefault(p => p.Id == _processId);
var _processName = process.ProcessName;
Debug.WriteLine(_processName);
- Debug.WriteLine(window.Location);
Debug.WriteLine(window.CanLayout);
}