mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 13:51:19 +01:00
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.
This commit is contained in:
1 parent
95ec707852
commit
3e59a2b210
1 file changed
+1
-1
@@ -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()
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user