mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2025-02-24 16:06:26 -05:00
Bugfix: When entering 512 characters, you could use neither return nor backspace (Thanks carl)
This commit is contained in:
parent
c3affb1c61
commit
3a22727bff
1 changed files with 3 additions and 3 deletions
6
i3lock.c
6
i3lock.c
|
@ -129,9 +129,6 @@ static void handle_key_press(xcb_key_press_event_t *event) {
|
||||||
* keysyms, we remove the numlock flag from the event state */
|
* keysyms, we remove the numlock flag from the event state */
|
||||||
event->state &= ~numlockmask;
|
event->state &= ~numlockmask;
|
||||||
|
|
||||||
if ((input_position + 8) >= sizeof(password))
|
|
||||||
return;
|
|
||||||
|
|
||||||
xcb_keysym_t sym = xcb_key_press_lookup_keysym(symbols, event, event->state);
|
xcb_keysym_t sym = xcb_key_press_lookup_keysym(symbols, event, event->state);
|
||||||
switch (sym) {
|
switch (sym) {
|
||||||
case XK_Mode_switch:
|
case XK_Mode_switch:
|
||||||
|
@ -157,6 +154,9 @@ static void handle_key_press(xcb_key_press_event_t *event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((input_position + 8) >= sizeof(password))
|
||||||
|
return;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* FIXME: handle all of these? */
|
/* FIXME: handle all of these? */
|
||||||
printf("is_keypad_key = %d\n", xcb_is_keypad_key(sym));
|
printf("is_keypad_key = %d\n", xcb_is_keypad_key(sym));
|
||||||
|
|
Loading…
Add table
Reference in a new issue