Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix: correct Windows recorder activation display lookup

Richie McIlroy3b97ac8c26d4
diff --git a/apps/desktop-gpui/src/main_window.rs b/apps/desktop-gpui/src/main_window.rs
index af761738c..95be70044 100644
--- a/apps/desktop-gpui/src/main_window.rs
+++ b/apps/desktop-gpui/src/main_window.rs
@@ -605,7 +605,7 @@ impl MainWindow {
});
#[cfg(target_os = "windows")]
cx.observe_window_activation(window, |this, window, cx| {
- if window.is_window_active() && !this.displays.is_empty() {
+ if window.is_window_active() && !this.devices.displays.is_empty() {
this.schedule_target_prewarm(window, cx);
}
cx.notify();