Use X11 global hotkeys on X11 when possible to prevent clashing with keys used by other applications

This commit is contained in:
dec05eba
2024-11-30 22:25:58 +01:00
parent f885ae67f1
commit 6cde892148
8 changed files with 185 additions and 98 deletions

View File

@@ -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();