fix(pointing): Avoids mutex leak for default layer toggle event (#2934)

Remove unnecessary special check for toggle of layer 0,
to avoid mutex leak.
This commit is contained in:
cormoran 2025-05-10 09:01:17 +09:00 committed by GitHub
parent 879cff7595
commit 461f5c832f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 3 deletions

View File

@ -134,9 +134,6 @@ static int handle_layer_state_changed(const struct device *dev, const zmk_event_
if (ret < 0) {
return ret;
}
if (data->state.toggle_layer == 0) {
return ZMK_EV_EVENT_BUBBLE;
}
if (!zmk_keymap_layer_active(zmk_keymap_layer_index_to_id(data->state.toggle_layer))) {
LOG_DBG("Deactivating layer that was activated by this processor");
data->state.is_active = false;