Ungrab devices if there is a keyboard lock (if an input remapping software runs and grabs gsr-ui virtual keyboard)

This commit is contained in:
dec05eba
2025-11-07 19:23:38 +01:00
parent 2bc2252d30
commit be07070789
11 changed files with 166 additions and 24 deletions

View File

@@ -9,7 +9,8 @@ namespace gsr {
public:
enum class GrabType {
ALL,
VIRTUAL
VIRTUAL,
NO_GRAB
};
GlobalHotkeysLinux(GrabType grab_type);
@@ -21,6 +22,8 @@ namespace gsr {
bool bind_key_press(Hotkey hotkey, const std::string &id, GlobalHotkeyCallback callback) override;
void unbind_all_keys() override;
void poll_events() override;
std::function<void()> on_gsr_ui_virtual_keyboard_grabbed;
private:
void close_fds();
private: