aboutsummaryrefslogtreecommitdiff
path: root/src/gui/ScreenshotSettingsPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/ScreenshotSettingsPage.cpp')
-rw-r--r--src/gui/ScreenshotSettingsPage.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/ScreenshotSettingsPage.cpp b/src/gui/ScreenshotSettingsPage.cpp
index fd75660..5b8efbd 100644
--- a/src/gui/ScreenshotSettingsPage.cpp
+++ b/src/gui/ScreenshotSettingsPage.cpp
@@ -40,6 +40,8 @@ namespace gsr {
// record_area_box->add_item("Window", "window");
if(capture_options.region)
record_area_box->add_item("Region", "region");
+ if(!capture_options.monitors.empty())
+ record_area_box->add_item(gsr_info->system_info.display_server == DisplayServer::WAYLAND ? "Focused monitor (Experimental on Wayland)" : "Focused monitor", "focused_monitor");
for(const auto &monitor : capture_options.monitors) {
char name[256];
snprintf(name, sizeof(name), "Monitor %s (%dx%d)", monitor.name.c_str(), monitor.size.x, monitor.size.y);
@@ -255,8 +257,7 @@ namespace gsr {
void ScreenshotSettingsPage::add_widgets() {
content_page_ptr->add_widget(create_settings());
- record_area_box_ptr->on_selection_changed = [this](const std::string &text, const std::string &id) {
- (void)text;
+ record_area_box_ptr->on_selection_changed = [this](const std::string&, const std::string &id) {
const bool window_selected = id == "window";
const bool portal_selected = id == "portal";
select_window_list_ptr->set_visible(window_selected);
@@ -270,7 +271,7 @@ namespace gsr {
};
if(!capture_options.monitors.empty())
- record_area_box_ptr->set_selected_item(capture_options.monitors.front().name);
+ record_area_box_ptr->set_selected_item("focused_monitor");
else if(capture_options.portal)
record_area_box_ptr->set_selected_item("portal");
else if(capture_options.window)