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 --- include/Overlay.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/Overlay.hpp') diff --git a/include/Overlay.hpp b/include/Overlay.hpp index d7b8af1..4a9ef98 100644 --- a/include/Overlay.hpp +++ b/include/Overlay.hpp @@ -9,6 +9,7 @@ #include "GlobalHotkeysJoystick.hpp" #include "AudioPlayer.hpp" #include "RegionSelector.hpp" +#include "CursorTracker.hpp" #include #include @@ -115,6 +116,8 @@ namespace gsr { void on_press_take_screenshot(bool finished_region_selection, bool force_region_capture); bool update_compositor_texture(const Monitor &monitor); + std::string get_capture_target(const std::string &capture_target, const SupportedCaptureOptions &capture_options); + void force_window_on_top(); private: using KeyBindingCallback = std::function; @@ -205,5 +208,7 @@ namespace gsr { RegionSelector region_selector; bool start_region_capture = false; std::function on_region_selected; + + std::unique_ptr cursor_tracker; }; } \ No newline at end of file -- cgit v1.2.3-70-g09d2