i3 / i3lock

improved screen locker
https://i3wm.org/i3lock
BSD 3-Clause "New" or "Revised" License
921 stars 404 forks source link

Control key is recognized as always down #260

Closed zsugabubus closed 4 years ago

zsugabubus commented 4 years ago

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Other (Please describe in detail)

Current Behavior

Pressing j/m/u/h keys result in Control+j/m/u/h.

I can't see anything strange/useful in --debug log; evtest also confirms that I don't send Control key.

Expected Behavior

Recognize control key only when the user has actually pressed down.

Reproduction Instructions

  1. Run:
    i3lock # ...anything

Environment

Output of i3lock --version:

i3lock version 2.12 © 2010 Michael Stapelberg

Arch Linux

stapelberg commented 4 years ago

Which keyboard layout are you using? How are you selecting it? What’s the output of xmodmap -pke?

zsugabubus commented 4 years ago

Which keyboard layout are you using? How are you selecting it?

I set setxkbmap pl dvp compose:ralt in an i3 exec but I tried setting different setxkbmap-s, replug the keyboard and I've experienced the same behavior.

What’s the output of xmodmap -pke?

I haven't modified anything so it should be the default.


As usual the issue gone away just after I reported it. I'm not sure but I think updating libxkbcommon to v0.10.0 solved my issue. (I remember that i3lock worked with v0.8.4 so I guess v0.9.* introduced this behavior.)

stapelberg commented 4 years ago

Thanks for the details. I’ll close this under the assumption that the issue was indeed with libxkbcommon, but feel free to reopen in case the issue reappears.