Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore: merge main and remove X11 validation screenshot

jatmn4f2fa65b35c9
diff --cc apps/desktop-gpui/src/target_overlay.rs
index c31edade7,7c0bbd63f..3c5792b1d
--- a/apps/desktop-gpui/src/target_overlay.rs
+++ b/apps/desktop-gpui/src/target_overlay.rs
@@@ -675,17 -678,24 +707,30 @@@ impl OverlayWindow
let main_subscription = main
.update(cx, |_, _, cx| cx.entity())
.ok()
- .map(|main| cx.observe(&main, |_, _, cx| cx.notify()));
+ .map(|main| cx.observe_in(&main, window, |_, _, window, cx| repaint(window, cx)));
+ let media = crate::media_access::MediaAccess::global(cx);
+ media.update(cx, |access, cx| access.refresh(cx));
+ cx.observe_in(&media, window, |_, _, window, cx| repaint(window, cx))
+ .detach();
+ cx.observe_in(
+ &SignIn::global(cx),
+ window,
+ |this: &mut Self, _, window, cx| {
+ this.signed_in = crate::store::auth_snapshot().signed_in();
+ repaint(window, cx);
+ },
+ )
+ .detach();
+ let capture_scale = capture_scale_factor(window);
let logical = display
.logical_size()
- .map(|size| (size.width() as f32, size.height() as f32))
+ .map(|size| {
+ (
+ size.width() as f32 / capture_scale,
+ size.height() as f32 / capture_scale,
+ )
+ })
.unwrap_or((1920., 1080.));
let controls_work_area = display