@@ -476,18 +476,20 @@ pub async fn start_recording(
476476 recording_dir : recording_dir. clone ( ) ,
477477 } ;
478478
479- let window_exclusions = general_settings
480- . as_ref ( )
481- . map_or_else ( general_settings:: default_excluded_windows, |settings| {
482- settings. excluded_windows . clone ( )
483- } ) ;
484-
485- let excluded_windows =
486- crate :: window_exclusion:: resolve_window_ids ( & window_exclusions) ;
479+ #[ cfg( target_os = "macos" ) ]
480+ let excluded_windows = {
481+ let window_exclusions = general_settings
482+ . as_ref ( )
483+ . map_or_else ( general_settings:: default_excluded_windows, |settings| {
484+ settings. excluded_windows . clone ( )
485+ } ) ;
486+
487+ crate :: window_exclusion:: resolve_window_ids ( & window_exclusions)
488+ } ;
487489
488490 let actor = match inputs. mode {
489491 RecordingMode :: Studio => {
490- let mut builder = studio_recording:: Actor :: builder (
492+ let builder = studio_recording:: Actor :: builder (
491493 recording_dir. clone ( ) ,
492494 inputs. capture_target . clone ( ) ,
493495 )
@@ -496,8 +498,10 @@ pub async fn start_recording(
496498 general_settings
497499 . map ( |s| s. custom_cursor_capture )
498500 . unwrap_or_default ( ) ,
499- )
500- . with_excluded_windows ( excluded_windows. clone ( ) ) ;
501+ ) ;
502+
503+ #[ cfg( target_os = "macos" ) ]
504+ let mut builder = builder. with_excluded_windows ( excluded_windows. clone ( ) ) ;
501505
502506 if let Some ( camera_feed) = camera_feed {
503507 builder = builder. with_camera_feed ( camera_feed) ;
@@ -537,8 +541,10 @@ pub async fn start_recording(
537541 recording_dir. clone ( ) ,
538542 inputs. capture_target . clone ( ) ,
539543 )
540- . with_system_audio ( inputs. capture_system_audio )
541- . with_excluded_windows ( excluded_windows. clone ( ) ) ;
544+ . with_system_audio ( inputs. capture_system_audio ) ;
545+
546+ #[ cfg( target_os = "macos" ) ]
547+ let mut builder = builder. with_excluded_windows ( excluded_windows. clone ( ) ) ;
542548
543549 if let Some ( mic_feed) = mic_feed {
544550 builder = builder. with_mic_feed ( mic_feed) ;
0 commit comments