diff --git a/komorebi-for-mac/komorebi/src/window.rs b/komorebi-for-mac/komorebi/src/window.rs index 247b887e..595e6702 100644 --- a/komorebi-for-mac/komorebi/src/window.rs +++ b/komorebi-for-mac/komorebi/src/window.rs @@ -1587,7 +1587,7 @@ impl From<&CFDictionary> for WindowInfo { Self { name: cf_dictionary_value::(value, kCGWindowName) .map(|s| s.as_ref().to_string()) - .and_then(|s| if s.is_empty() { None } else { Some(s) }), + .filter(|s| !s.is_empty()), owner_pid: cf_dictionary_value::(value, kCGWindowOwnerPID) .and_then(|s| s.as_ref().as_i32()) .expect("window must have an owner process id"),