Skip to content

Commit

Permalink
Set state to false when the layer is already inactive.
Browse files Browse the repository at this point in the history
  • Loading branch information
AYM1607 committed Dec 23, 2024
1 parent d6d4cfb commit 779cfaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/pointing/input_processor_temp_layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ static void layer_action_work_cb(struct k_work *work) {
if (!action.activate) {
if (zmk_keymap_layer_active(action.layer)) {
update_layer_state(&data->state, false);
} else {
data->state.is_active = false;
}
} else {
update_layer_state(&data->state, true);
Expand Down

0 comments on commit 779cfaf

Please sign in to comment.