Fix high cpu usage when running global hotkeys without grab and then connecting a secondary keyboard

This commit is contained in:
dec05eba
2026-01-08 20:23:21 +01:00
parent d1220b013e
commit 1f6251baf3
2 changed files with 8 additions and 14 deletions

View File

@@ -243,17 +243,6 @@ static void keyboard_event_process_input_event_data(keyboard_event *self, event_
fprintf(stderr, "Error: failed to write event data to virtual keyboard for exclusively grabbed device\n");
}
if(event.type == EV_LED) {
write(fd, &event, sizeof(event));
const struct input_event syn_event = {
.type = EV_SYN,
.code = 0,
.value = 0
};
write(fd, &syn_event, sizeof(syn_event));
}
if(!extra_data->is_possibly_non_keyboard_device)
return;