Fix unused variable warnings for compilation without xkbcommon

Sorry, my fault that this generated warnings in the first place.
This commit is contained in:
Martin Gräßlin 2014-04-28 16:57:35 +02:00
parent 36e93e9c5a
commit 7091452acd

View file

@ -342,6 +342,11 @@ void InputRedirection::processKeyboardModifiers(uint32_t modsDepressed, uint32_t
if (oldMods != keyboardModifiers()) {
emit keyboardModifiersChanged(keyboardModifiers(), oldMods);
}
#else
Q_UNUSED(modsDepressed)
Q_UNUSED(modsLatched)
Q_UNUSED(modsLocked)
Q_UNUSED(group)
#endif
}
@ -350,6 +355,9 @@ void InputRedirection::processKeymapChange(int fd, uint32_t size)
// TODO: should we pass the keymap to our Clients? Or only to the currently active one and update
#if HAVE_XKB
m_xkb->installKeymap(fd, size);
#else
Q_UNUSED(fd)
Q_UNUSED(size)
#endif
}