Commit 3acb1a78 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

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

Otherwise I can't start windowed kwin
parent 4f484180
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment