From 3acb1a788e592e8b8f1894c56330cfc2fb9663bb Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 19 Nov 2020 22:32:52 +0100 Subject: [PATCH] xkb: Don't call the seat's keyboard if it doesn't have one Otherwise I can't start windowed kwin --- xkb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xkb.cpp b/xkb.cpp index d18075f8cc..9acd8cb98f 100644 --- a/xkb.cpp +++ b/xkb.cpp @@ -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,