Skip to content

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

fix: temporary fix for matching `Zebar` process name on macOS (#1305)

Lars Berger38a4d7772f1f
diff --git a/packages/wm/src/user_config.rs b/packages/wm/src/user_config.rs
index f9506742..5547f0c2 100644
--- a/packages/wm/src/user_config.rs
+++ b/packages/wm/src/user_config.rs
@@ -245,7 +245,17 @@ impl UserConfig {
let is_process_match = match_config
.window_process
.as_ref()
- .is_none_or(|match_type| match_type.is_match(&window_process));
+ .is_none_or(|match_type| {
+ // TODO: Temp fix for matching Zebar on both platforms with
+ // the same process name. Consider using lowercase for every
+ // `equals` match type.
+ if window_process == "Zebar" {
+ match_type.is_match("Zebar")
+ || match_type.is_match("zebar")
+ } else {
+ match_type.is_match(&window_process)
+ }
+ });
let is_class_match = {
#[cfg(target_os = "windows")]