aboutsummaryrefslogtreecommitdiff
path: root/swaylock
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-12-18 08:49:04 -0500
committerDrew DeVault <sir@cmpwn.com>2015-12-18 08:49:04 -0500
commit7558a274faf46c24449e03d53e01c0cf94a13c78 (patch)
tree043576061b89d25ec7c3837987a3ce520dd9f623 /swaylock
parent7f7be26cfe3eeab07fce9333c8204f1623b42bb5 (diff)
Add shims for swaylock on compositor
Diffstat (limited to 'swaylock')
-rw-r--r--swaylock/main.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/swaylock/main.c b/swaylock/main.c
index c31a4552..fbe2851b 100644
--- a/swaylock/main.c
+++ b/swaylock/main.c
@@ -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;
+ }
}
}
}