Skip to content

Commit

Permalink
xgb: fix spurious key up/down events
Browse files Browse the repository at this point in the history
The KeymapNotify event handling code wasn't correctly translating
X keysym to wde key string. This could result in spurious events
for keys where the two are different (eg. left shift is "Shift_L"
in X11 and "left_shift" in wde).
  • Loading branch information
sqweek committed Feb 12, 2016
1 parent 9c800e5 commit 4e98f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xgb/events.go
Expand Up @@ -159,7 +159,7 @@ func (w *Window) handleEvents() {
for j := 0; j < 8; j++ {
if mask & (1 << uint(j)) != 0 {
keycode := xproto.Keycode(8 * (i + 1) + j)
key := keybind.LookupString(w.xu, 0, keycode)
key := keyForCode(keybind.LookupString(w.xu, 0, keycode))
newDownKeys[key] = true
}
}
Expand Down

0 comments on commit 4e98f3c

Please sign in to comment.