diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-12-26 15:28:52 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-12-26 15:28:52 +0100 |
commit | 62fe500637bd321bc75e74cc9ec97f4036a11406 (patch) | |
tree | 869570cb8ac0fa2304c7d498c29cf1deef73c961 /tools | |
parent | e5b745d696c3ea14bfa9f51f75825befaa94a924 (diff) |
Virtual keyboard: set EV_SYN and EV_MSC event bits
Diffstat (limited to 'tools')
-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 8d27806..fdd9e80 100644 --- a/tools/gsr-global-hotkeys/keyboard_event.c +++ b/tools/gsr-global-hotkeys/keyboard_event.c @@ -270,6 +270,8 @@ static int setup_virtual_keyboard_input(const char *name) { } bool success = true; + success &= (ioctl(fd, UI_SET_EVBIT, EV_SYN) != -1); + success &= (ioctl(fd, UI_SET_EVBIT, EV_MSC) != -1); success &= (ioctl(fd, UI_SET_EVBIT, EV_KEY) != -1); for(int i = 1; i < KEY_MAX; ++i) { success &= (ioctl(fd, UI_SET_KEYBIT, i) != -1); |