xkb: Don't call the seat's keyboard if it doesn't have one

Otherwise I can't start windowed kwin
This commit is contained in:
Aleix Pol 2020-11-19 22:32:52 +01:00
parent 4f484180cd
commit 3acb1a788e

View file

@ -273,7 +273,7 @@ void Xkb::updateKeymap(xkb_keymap *keymap)
void Xkb::createKeymapFile()
{
if (!m_seat) {
if (!m_seat || !m_seat->keyboard()) {
return;
}
// TODO: uninstall keymap on server?
@ -371,7 +371,7 @@ void Xkb::updateModifiers()
void Xkb::forwardModifiers()
{
if (!m_seat) {
if (!m_seat || !m_seat->keyboard()) {
return;
}
m_seat->keyboard()->updateModifiers(m_modifierState.depressed,