From 81e2fab47f4ec9423fd92b8e5fd013e83a080e2b Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 28 Dec 2024 09:30:11 +0100 Subject: Global hotkeys: only grab devices after all keys have been released --- tools/gsr-global-hotkeys/keyboard_event.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/gsr-global-hotkeys/keyboard_event.h') diff --git a/tools/gsr-global-hotkeys/keyboard_event.h b/tools/gsr-global-hotkeys/keyboard_event.h index 67251fc..d12b684 100644 --- a/tools/gsr-global-hotkeys/keyboard_event.h +++ b/tools/gsr-global-hotkeys/keyboard_event.h @@ -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; -- cgit v1.2.3