fix(wm): ignore com hwnds on monitor polling

This commit is contained in:
LGUG2Z
2022-04-20 14:17:41 -07:00
parent 61760fc77d
commit d91c70e2e8
+3 -1
View File
@@ -76,7 +76,9 @@ impl WindowManager {
let monitor_idx = self.monitor_idx_from_window(*window) 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"))?; .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)?;
}
} }
_ => {} _ => {}
} }