diff options
| author | Drew DeVault <sir@cmpwn.com> | 2015-12-18 08:49:04 -0500 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2015-12-18 08:49:04 -0500 |
| commit | ffb1e3091c5ec11ac3f958ba6312c05c0f3439b4 (patch) | |
| tree | 1c26762141ca5feec635f2e774fb13168dc56571 /main.c | |
| parent | 27139b9f48944e3b24170bcf9eb87c81934c4e44 (diff) | |
Add shims for swaylock on compositor
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -72,7 +72,6 @@ bool verify_password(char *password) { } void notify_key(enum wl_keyboard_key_state state, xkb_keysym_t sym, uint32_t code, uint32_t codepoint) { - sway_log(L_INFO, "notified of key %c", (char)codepoint); if (state == WL_KEYBOARD_KEY_STATE_PRESSED) { switch (sym) { case XKB_KEY_Return: @@ -81,13 +80,12 @@ void notify_key(enum wl_keyboard_key_state state, xkb_keysym_t sym, uint32_t cod } break; default: - { - int i = strlen(password); - password[i] = (char)codepoint; - password[i + 1] = '\0'; - sway_log(L_INFO, "pw: %s", password); - break; - } + { + int i = strlen(password); + password[i] = (char)codepoint; + password[i + 1] = '\0'; + break; + } } } } |
