Fix sending input hints with new text input protocol

Using input method hints to request things like digits-only
etc. did not work with the specialized Qt input method for two
reasons: First of all the full state of the editor needs to be sent
to the keyboard when the focus object is set.

But even fixing this, it turned out that the recipient was not
actually registering the input methods hints, but just overwriting
the function argument with itself.

Fixes: QTBUG-91206
Pick-to: 6.0 6.1
Change-Id: I1b8a3e92cc912bc06b6a2a60f8ea280393cd226e
Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Eskil Abrahamsen Blomfeldt 2021-02-19 07:46:43 +01:00
parent 1a1c264b0b
commit d56e534dba

View File

@ -408,6 +408,8 @@ void QWaylandInputMethodContext::setFocusObject(QObject *)
m_currentWindow = window;
}
}
update(Qt::ImQueryAll);
}
}