aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-12-28 15:29:26 +0100
committerdec05eba <dec05eba@protonmail.com>2024-12-28 22:30:30 +0100
commitc213b5de89ee4a11d1c6c94b8b142b24885a4323 (patch)
tree8e6b50f6cd42f6a3381705e79b4db1016929b1ab /tools
parent81e2fab47f4ec9423fd92b8e5fd013e83a080e2b (diff)
Add option to manage program startup directly in the program
Diffstat (limited to 'tools')
-rw-r--r--tools/gsr-global-hotkeys/keyboard_event.c2
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;