Skip to content

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

fix: ensure window has valid title and class name when checking if manageable (#1083)

Lars Berger96cd719eb931
diff --git a/packages/wm-platform/src/native_window.rs b/packages/wm-platform/src/native_window.rs
index 58c3af07..b10ddae9 100644
--- a/packages/wm-platform/src/native_window.rs
+++ b/packages/wm-platform/src/native_window.rs
@@ -209,8 +209,10 @@ impl NativeWindow {
return Ok(false);
}
+ // Ensure window has a valid process name, title, and class name.
let process_name = self.process_name()?;
- let title = self.process_name()?;
+ let title = self.title()?;
+ let _ = self.class_name()?;
// TODO: Temporary fix for managing Flow Launcher until a force manage
// command is added.