aboutsummaryrefslogtreecommitdiff
path: root/src/Config.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-04-04 20:51:28 +0200
committerdec05eba <dec05eba@protonmail.com>2025-04-04 20:51:28 +0200
commit2e3adfc5100c4c273529d7e0ed1cba42f184395f (patch)
tree1342ecd7e0910c739739948d31114419ce22f1bd /src/Config.cpp
parent44f35f8f3b39892def66a2a0f15d3a261f0be778 (diff)
Add option to capture the focused monitor
Diffstat (limited to 'src/Config.cpp')
-rw-r--r--src/Config.cpp8
1 files changed, 4 insertions, 4 deletions
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";
}
}