summaryrefslogtreecommitdiff
path: root/swaylock/seat.c
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2018-04-03 14:31:30 -0400
committerDrew DeVault <[email protected]>2018-04-04 18:47:48 -0400
commit066143adef7adc6e76e43e1990db2f75fe984b42 (patch)
treef9509c14f04399bf02d2cc31ff62869a07691543 /swaylock/seat.c
parent1fe3cb8965e70f8f05f28512e66d76c49453a196 (diff)
Add password buffer, refactor rendering/surfaces
Diffstat (limited to 'swaylock/seat.c')
-rw-r--r--swaylock/seat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/swaylock/seat.c b/swaylock/seat.c
index 522200f2..6c46bb41 100644
--- a/swaylock/seat.c
+++ b/swaylock/seat.c
@@ -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,