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
+2
View File
@@ -76,8 +76,10 @@ 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"))?;
if window.class()? != "OleMainThreadWndClass" {
self.focus_monitor(monitor_idx)?; self.focus_monitor(monitor_idx)?;
} }
}
_ => {} _ => {}
} }