diff --git a/keyboard_input.cpp b/keyboard_input.cpp index c1747f6860..57aa7b0dc0 100644 --- a/keyboard_input.cpp +++ b/keyboard_input.cpp @@ -387,6 +387,18 @@ void KeyboardInputRedirection::init() } ); + QDBusConnection::sessionBus().connect(QString(), + QStringLiteral("/Layouts"), + QStringLiteral("org.kde.keyboard"), + QStringLiteral("reloadConfig"), + this, + SLOT(reconfigure())); + + m_xkb->reconfigure(); +} + +void KeyboardInputRedirection::reconfigure() +{ m_xkb->reconfigure(); } diff --git a/keyboard_input.h b/keyboard_input.h index 85a5ce3e6d..dbb2865623 100644 --- a/keyboard_input.h +++ b/keyboard_input.h @@ -113,6 +113,9 @@ public: return m_xkb->modifiers(); } +private Q_SLOTS: + void reconfigure(); + private: InputRedirection *m_input; bool m_inited = false;