mirror of
https://gitlab.com/interception/linux/plugins/caps2esc.git
synced 2025-05-21 01:22:24 +00:00
Passthrough mouse events
To not block mice that have keys, which end up grabbed due to generic configurations that simply filter anything that responds to CAPSLOCK/ESC. Fixes #15
This commit is contained in:
@ -46,9 +46,7 @@ void write_event(const struct input_event *event) {
|
||||
}
|
||||
|
||||
void write_event_with_mode(struct input_event *event, int mode) {
|
||||
if (event->type == EV_REL || event->type == EV_ABS)
|
||||
return;
|
||||
|
||||
if (event->type == EV_KEY)
|
||||
switch (mode) {
|
||||
case 0:
|
||||
if (event->code == KEY_ESC)
|
||||
|
Reference in New Issue
Block a user