Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix(tauri): defer main window setup on macOS until UI reports ready
Richie McIlroy371c28f3fc4d
diff --git a/apps/desktop/src-tauri/src/windows.rs b/apps/desktop/src-tauri/src/windows.rsindex 33c2995b8..4acad444b 100644--- a/apps/desktop/src-tauri/src/windows.rs+++ b/apps/desktop/src-tauri/src/windows.rs@@ -25,8 +25,8 @@ use tracing::{debug, error, instrument, warn};use crate::panel_manager::{PanelManager, PanelState, PanelWindowType};use crate::{- App, ArcLock, CameraWindowCloseGate, CameraWindowPositionGuard, RequestScreenCapturePrewarm,- RequestSetTargetMode,+ App, ArcLock, CameraWindowCloseGate, CameraWindowPositionGuard, MainWindowReadyState,+ RequestScreenCapturePrewarm, RequestSetTargetMode,editor_window::PendingEditorInstances,fake_window,general_settings::{self, AppTheme, GeneralSettingsStore},@@ -963,6 +963,12 @@ impl ShowCapWindow {return Box::pin(Self::Onboarding.show(app)).await;}+ #[cfg(target_os = "macos")]+ if matches!(self, Self::Main { .. }) && !app.state::<MainWindowReadyState>().is_ready()+ {+ return Ok(window);+ }+let cursor_display_id = if let Self::Main { init_target_mode } = self {if init_target_mode.is_some() {Display::get_containing_cursor()