From d91c70e2e8246733483fef7881bedb679590b9ef Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Wed, 20 Apr 2022 14:17:41 -0700 Subject: [PATCH] fix(wm): ignore com hwnds on monitor polling --- komorebi/src/process_event.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/komorebi/src/process_event.rs b/komorebi/src/process_event.rs index 0c14c734..fa4c5e66 100644 --- a/komorebi/src/process_event.rs +++ b/komorebi/src/process_event.rs @@ -76,7 +76,9 @@ impl WindowManager { let monitor_idx = self.monitor_idx_from_window(*window) .ok_or_else(|| anyhow!("there is no monitor associated with this window, it may have already been destroyed"))?; - self.focus_monitor(monitor_idx)?; + if window.class()? != "OleMainThreadWndClass" { + self.focus_monitor(monitor_idx)?; + } } _ => {} }