diff options
| author | Drew DeVault <sir@cmpwn.com> | 2018-04-03 14:31:30 -0400 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2018-04-04 18:47:48 -0400 |
| commit | 3f21cd441b50bd4dfa754e60ad6d7733815ac349 (patch) | |
| tree | 2c8da8d0f3f613f37e316ca7115a1f3e5b377966 /seat.c | |
| parent | aead06f43c3de77a92b7dd444174a28d51183edc (diff) | |
Add password buffer, refactor rendering/surfaces
Diffstat (limited to 'seat.c')
| -rw-r--r-- | seat.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -73,7 +73,9 @@ static void keyboard_key(void *data, struct wl_keyboard *wl_keyboard, uint32_t keycode = key_state == WL_KEYBOARD_KEY_STATE_PRESSED ? key + 8 : 0; uint32_t codepoint = xkb_state_key_get_utf32(state->xkb.state, keycode); - wlr_log(L_DEBUG, "%c %d", codepoint, sym); + if (key_state == WL_KEYBOARD_KEY_STATE_PRESSED) { + swaylock_handle_key(state, sym, codepoint); + } } static void keyboard_modifiers(void *data, struct wl_keyboard *wl_keyboard, |
