Don't run focus in on input method disabled window

This commit is contained in:
Weng Xuetian 2020-05-18 09:54:03 -07:00
parent 128066eeee
commit b4d9cb2439
1 changed files with 2 additions and 1 deletions

View File

@ -409,7 +409,8 @@ void QFcitxPlatformInputContext::createInputContextFinished(
if (proxy->isValid()) {
QWindow *window = qApp->focusWindow();
setFocusGroupForX11(uuid);
if (window && window == w) {
if (window && window == w && inputMethodAccepted() &&
objectAcceptsInputMethod()) {
cursorRectChanged();
proxy->focusIn();
}