diff --git a/src/inputmethod.cpp b/src/inputmethod.cpp index 2c61ea0820..c22007bcad 100644 --- a/src/inputmethod.cpp +++ b/src/inputmethod.cpp @@ -70,17 +70,6 @@ void InputMethod::init() }); connect(ScreenLockerWatcher::self(), &ScreenLockerWatcher::aboutToLock, this, &InputMethod::hide); - if (waylandServer()) { - m_enabled = !input()->hasAlphaNumericKeyboard(); - qCDebug(KWIN_VIRTUALKEYBOARD) << "enabled by default: " << m_enabled; - connect(input(), &InputRedirection::hasAlphaNumericKeyboardChanged, this, - [this] (bool set) { - qCDebug(KWIN_VIRTUALKEYBOARD) << "AlphaNumeric Keyboard changed:" << set << "toggling virtual keyboard."; - setEnabled(!set); - } - ); - } - updateSni(); connect(this, &InputMethod::enabledChanged, this, &InputMethod::updateSni); diff --git a/src/inputmethod.h b/src/inputmethod.h index 6a57219aaf..45a94317ed 100644 --- a/src/inputmethod.h +++ b/src/inputmethod.h @@ -88,7 +88,7 @@ private: quint32 end = 0; } preedit; - bool m_enabled = false; + bool m_enabled = true; quint32 m_serial = 0; QScopedPointer m_sni; QPointer m_inputClient;