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:
parent
4f484180cd
commit
3acb1a788e
1 changed files with 2 additions and 2 deletions
4
xkb.cpp
4
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,
|
||||
|
|
Loading…
Reference in a new issue