From b572449372a303ff73d1b22dcf911079c78eaace Mon Sep 17 00:00:00 2001 From: Jan Almeroth Date: Thu, 11 Apr 2024 21:21:19 +0200 Subject: [PATCH] chore: fix screenlock Shortcut is always received local to the device the keyboard is connected to. Send command to all others. --- src/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers.c b/src/handlers.c index aa08c35..55db6da 100644 --- a/src/handlers.c +++ b/src/handlers.c @@ -117,7 +117,7 @@ void screenlock_hotkey_handler(device_t *state, hid_keyboard_report_t *report) { break; } - if (global_state.active_output == out) { + if (BOARD_ROLE == out) { queue_kbd_report(&lock_report, state); release_all_keys(state); } else {