aboutsummaryrefslogtreecommitdiff
path: root/include/Overlay.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-30 22:25:58 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-30 22:26:56 +0100
commit6cde892148e2643a3cd1ba80c3669bc035fc1fea (patch)
tree401a4927b79bb9bddfce977d5f51b0dca472f789 /include/Overlay.hpp
parentf885ae67f13ab26dcc47d3fa9cc31ee2fea58c50 (diff)
Use X11 global hotkeys on X11 when possible to prevent clashing with keys used by other applications
Diffstat (limited to 'include/Overlay.hpp')
-rw-r--r--include/Overlay.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/Overlay.hpp b/include/Overlay.hpp
index e6b65e3..bf49a42 100644
--- a/include/Overlay.hpp
+++ b/include/Overlay.hpp
@@ -18,6 +18,7 @@
namespace gsr {
class DropdownButton;
+ class GlobalHotkeys;
enum class RecordingStatus {
NONE,
@@ -40,7 +41,7 @@ namespace gsr {
Overlay& operator=(const Overlay&) = delete;
~Overlay();
- void handle_events();
+ void handle_events(gsr::GlobalHotkeys *global_hotkeys);
void on_event(mgl::Event &event);
// Returns false if not visible
bool draw();