Skip to content

Commit

Permalink
swapm: Fix macro execution for toggled layers (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaiya committed Apr 23, 2023
1 parent d5aaa59 commit 7116e55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/keyboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,12 +743,12 @@ static long process_descriptor(struct keyboard *kbd, uint8_t code,
deactivate_layer(kbd, dl);
activate_layer(kbd, ce->code, idx);

if (macro)
execute_macro(kbd, dl, macro);

update_mods(kbd, -1, 0);
}
}

if (macro)
execute_macro(kbd, dl, macro);
} else {
if (macro &&
macro->sz == 1 &&
Expand Down

0 comments on commit 7116e55

Please sign in to comment.