From 3e59a2b210749e25503733550ca22e8f11048d2e Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Tue, 27 Oct 2026 19:53:09 -0700 Subject: [PATCH] fix(process_event): warn when a focus notification is not followed A notification that an application came to the front is not followed while another application is in front. That is right when komorebi has since moved on to another, and it is also all there is to see when the window server refused to bring the application to the front at all, in which case focus moves in komorebi and nowhere else. At debug level it was left out of the log by default, so the only trace of that refusal was in the OS log. Make it a warning. --- komorebi/src/process_event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komorebi/src/process_event.rs b/komorebi/src/process_event.rs index 4e0280db..a2c501b3 100644 --- a/komorebi/src/process_event.rs +++ b/komorebi/src/process_event.rs @@ -210,7 +210,7 @@ impl WindowManager { let frontmost = MacosApi::frontmost_process_id(); let stale = is_stale_focus_notification(frontmost, process_id); if stale { - tracing::debug!( + tracing::warn!( "not following {notification} for process {process_id}: process {} is in front", frontmost.unwrap_or_default() );