Skip to content

Commit

Permalink
swap: Fix support for overloadt() (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaiya committed Feb 21, 2024
1 parent 88b9b81 commit b093da5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,12 +1095,12 @@ int handle_pending_key(struct keyboard *kbd, uint8_t code, int pressed, long tim
kbd->pending_key.queue_sz = 0;
kbd->pending_key.tap_expiry = 0;

process_descriptor(kbd, code, &action, dl, 1, time);
cache_set(kbd, code, &(struct cache_entry) {
.d = action,
.dl = dl,
.layer = 0,
});
process_descriptor(kbd, code, &action, dl, 1, time);

/* Flush queued events */
kbd_process_events(kbd, queue, queue_sz);
Expand Down

0 comments on commit b093da5

Please sign in to comment.