Show notification on the target monitor when capturing a monitor

This commit is contained in:
dec05eba
2025-04-05 14:58:54 +02:00
parent 4df36142e5
commit e04cfb9ac4
2 changed files with 118 additions and 34 deletions

View File

@@ -61,7 +61,7 @@ namespace gsr {
void save_replay();
void take_screenshot();
void take_screenshot_region();
void show_notification(const char *str, double timeout_seconds, mgl::Color icon_color, mgl::Color bg_color, NotificationType notification_type);
void show_notification(const char *str, double timeout_seconds, mgl::Color icon_color, mgl::Color bg_color, NotificationType notification_type, const char *capture_target = nullptr);
bool is_open() const;
bool should_exit(std::string &reason) const;
void exit();
@@ -208,6 +208,9 @@ namespace gsr {
RegionSelector region_selector;
bool start_region_capture = false;
std::function<void()> on_region_selected;
std::string recording_capture_target;
std::string replay_capture_target;
std::string screenshot_capture_target;
std::unique_ptr<CursorTracker> cursor_tracker;