diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-28 15:29:26 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-28 22:30:30 +0100 |
commit | c213b5de89ee4a11d1c6c94b8b142b24885a4323 (patch) | |
tree | 8e6b50f6cd42f6a3381705e79b4db1016929b1ab /tools/gsr-global-hotkeys | |
parent | 81e2fab47f4ec9423fd92b8e5fd013e83a080e2b (diff) |
Add option to manage program startup directly in the program
Diffstat (limited to 'tools/gsr-global-hotkeys')
-rw-r--r-- | tools/gsr-global-hotkeys/keyboard_event.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gsr-global-hotkeys/keyboard_event.c b/tools/gsr-global-hotkeys/keyboard_event.c index 954fc7e..ef8f6ef 100644 --- a/tools/gsr-global-hotkeys/keyboard_event.c +++ b/tools/gsr-global-hotkeys/keyboard_event.c @@ -260,6 +260,8 @@ static bool keyboard_event_try_add_device_if_keyboard(keyboard_event *self, cons }; keyboard_event_fetch_update_key_states(self, &self->event_extra_data[self->num_event_polls], fd); + if(self->event_extra_data[self->num_event_polls].num_keys_pressed > 0) + fprintf(stderr, "Info: device not grabbed yet because some keys are still being pressed: /dev/input/event%d\n", dev_input_id); ++self->num_event_polls; return true; |