Fix Xkb::shouldKeyRepeat

Was missing the magic +8 offset.
This commit is contained in:
Martin Gräßlin 2016-08-29 17:14:08 +02:00
parent 56e3b5b116
commit 5702c3f1bf

View file

@ -361,7 +361,7 @@ bool Xkb::shouldKeyRepeat(quint32 key) const
if (!m_keymap) {
return false;
}
return xkb_keymap_key_repeats(m_keymap, key) != 0;
return xkb_keymap_key_repeats(m_keymap, key + 8) != 0;
}
void Xkb::switchToNextLayout()