summaryrefslogtreecommitdiff
path: root/seat.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-03 14:31:30 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-04 18:47:48 -0400
commit3f21cd441b50bd4dfa754e60ad6d7733815ac349 (patch)
tree2c8da8d0f3f613f37e316ca7115a1f3e5b377966 /seat.c
parentaead06f43c3de77a92b7dd444174a28d51183edc (diff)
Add password buffer, refactor rendering/surfaces
Diffstat (limited to 'seat.c')
-rw-r--r--seat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/seat.c b/seat.c
index 522200f..6c46bb4 100644
--- a/seat.c
+++ b/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,