]> git.sur5r.net Git - i3/i3lock/commit
Skip keypresses without entering a password, they cause a delay
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 10 Dec 2009 19:24:58 +0000 (20:24 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 10 Dec 2009 19:24:58 +0000 (20:24 +0100)
commit2e5bee59d5444f84126df845bfb8e02cd252576f
tree40fc354826455afc52677982a2c23687450a670c
parent3fb649937318116441f4e9e17cdd6f11c48a77d5
Skip keypresses without entering a password, they cause a delay

When suspending your system to RAM, a race-condition can occur which
causes many enter keypresses to be sent. These effectively delay
your login by 3 seconds times 50 times (or so), so we just skip empty
passwords. If your password is empty, you don’t need to lock your
screen anyway.
i3lock.c