We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f040ca7 commit c0a7199Copy full SHA for c0a7199
src/gui/performance.c
@@ -427,13 +427,15 @@ static void event_callback(mtk_event *e, int count)
427
index = keycode_to_index(e[i].press.code);
428
if(index != -1) {
429
index = keyboard_patches[index];
430
- renderer_add_patch(patches[index].p);
+ if(index != -1)
431
+ renderer_add_patch(patches[index].p);
432
}
433
} else if(e[i].type == EVENT_TYPE_RELEASE) {
434
index = keycode_to_index(e[i].release.code);
435
436
- renderer_del_patch(patches[index].p);
437
438
+ renderer_del_patch(patches[index].p);
439
440
} else if(e[i].type == EVENT_TYPE_IR) {
441
index = e[i].press.code;
0 commit comments