Global hotkeys: only grab devices after all keys have been released

This commit is contained in:
dec05eba
2024-12-28 09:30:11 +01:00
parent 49584e3dfc
commit 81e2fab47f
3 changed files with 124 additions and 61 deletions

View File

@@ -32,6 +32,8 @@ typedef enum {
typedef struct {
int dev_input_id;
bool grabbed;
unsigned char *key_states;
int num_keys_pressed;
} event_extra_data;
typedef struct {
@@ -43,8 +45,6 @@ typedef struct {
int hotplug_event_index;
int uinput_fd;
bool stdout_failed;
int32_t repeat_key_to_ignore;
bool has_received_key_event;
hotplug_event hotplug_ev;