From 2e3adfc5100c4c273529d7e0ed1cba42f184395f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 4 Apr 2025 20:51:28 +0200 Subject: Add option to capture the focused monitor --- src/Config.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Config.cpp') diff --git a/src/Config.cpp b/src/Config.cpp index fdb5e4a..9847c45 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -123,10 +123,10 @@ namespace gsr { screenshot_config.save_directory = default_pictures_save_directory; if(!capture_options.monitors.empty()) { - streaming_config.record_options.record_area_option = capture_options.monitors.front().name; - record_config.record_options.record_area_option = capture_options.monitors.front().name; - replay_config.record_options.record_area_option = capture_options.monitors.front().name; - screenshot_config.record_area_option = capture_options.monitors.front().name; + streaming_config.record_options.record_area_option = "focused_monitor"; + record_config.record_options.record_area_option = "focused_monitor"; + replay_config.record_options.record_area_option = "focused_monitor"; + screenshot_config.record_area_option = "focused_monitor"; } } -- cgit v1.2.3-70-g09d2