From 6b52e4b3a4f71b4d31829c314fd3e124e7bc6bd2 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Fri, 2 Jan 2026 15:19:13 -0800 Subject: [PATCH] fix(wm): treat empty titles as unmanageable Some apps like Raycast do dumb stuff like reporting empty strings as titles to the system. If your app doesn't have a title, don't give it an empty string as a title! This commit adds an explicit string emptiness check on titles when evaluating windows for management eligibility. --- komorebi/src/window.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/komorebi/src/window.rs b/komorebi/src/window.rs index 0a98a400..2f5360d1 100644 --- a/komorebi/src/window.rs +++ b/komorebi/src/window.rs @@ -945,8 +945,20 @@ impl Window { return Ok(false); } } - Some(_) => { - debug.has_title = true; + Some(title) => { + // Raycast is dumb and reports an empty string as a title + if title.is_empty() { + if TITLELESS_APPLICATIONS + .lock() + .contains(&self.exe().unwrap_or_default()) + { + debug.matches_titleless_applications = self.exe(); + } else { + return Ok(false); + } + } else { + debug.has_title = true; + } } }