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 | 066143adef7adc6e76e43e1990db2f75fe984b42 (patch) | |
tree | f9509c14f04399bf02d2cc31ff62869a07691543 /swaylock/seat.c | |
parent | Link swaylock to xkbcommon (diff) | |
download | sway-066143adef7adc6e76e43e1990db2f75fe984b42.tar.gz sway-066143adef7adc6e76e43e1990db2f75fe984b42.tar.zst sway-066143adef7adc6e76e43e1990db2f75fe984b42.zip |
Add password buffer, refactor rendering/surfaces
Diffstat (limited to 'swaylock/seat.c')
-rw-r--r-- | swaylock/seat.c | 4 |
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, | |||
73 | uint32_t keycode = key_state == WL_KEYBOARD_KEY_STATE_PRESSED ? | 73 | uint32_t keycode = key_state == WL_KEYBOARD_KEY_STATE_PRESSED ? |
74 | key + 8 : 0; | 74 | key + 8 : 0; |
75 | uint32_t codepoint = xkb_state_key_get_utf32(state->xkb.state, keycode); | 75 | uint32_t codepoint = xkb_state_key_get_utf32(state->xkb.state, keycode); |
76 | wlr_log(L_DEBUG, "%c %d", codepoint, sym); | 76 | if (key_state == WL_KEYBOARD_KEY_STATE_PRESSED) { |
77 | swaylock_handle_key(state, sym, codepoint); | ||
78 | } | ||
77 | } | 79 | } |
78 | 80 | ||
79 | static void keyboard_modifiers(void *data, struct wl_keyboard *wl_keyboard, | 81 | static void keyboard_modifiers(void *data, struct wl_keyboard *wl_keyboard, |