Use focusObjectWrapper to get the real focus object. (#37)
This commit is contained in:
parent
822406b562
commit
af8cc0d56d
|
@ -1124,9 +1124,8 @@ QWindow *QFcitxPlatformInputContext::focusWindowWrapper() const {
|
|||
if (!focusWindow) {
|
||||
break;
|
||||
}
|
||||
QObject *focusObject = qGuiApp->focusObject();
|
||||
QObject *realFocusObject = deepestFocusProxy(qGuiApp->focusObject());
|
||||
if (focusObject == realFocusObject) {
|
||||
QObject *realFocusObject = focusObjectWrapper();
|
||||
if (qGuiApp->focusObject() == realFocusObject) {
|
||||
break;
|
||||
}
|
||||
auto *widget = qobject_cast<QWidget *>(realFocusObject);
|
||||
|
|
Loading…
Reference in New Issue