Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
fcitx5-qt
fcitx5-qt-5.9.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fcitx5-qt-5.9.patch of Package fcitx5-qt
Index: fcitx5-qt-5.0.6/qt5/platforminputcontext/qfcitxplatforminputcontext.cpp =================================================================== --- fcitx5-qt-5.0.6.orig/qt5/platforminputcontext/qfcitxplatforminputcontext.cpp +++ fcitx5-qt-5.0.6/qt5/platforminputcontext/qfcitxplatforminputcontext.cpp @@ -13,6 +13,8 @@ #include <QPalette> #include <QTextCharFormat> #include <QWindow> +#include <QtGlobal> +#include <QTimer> #include <qpa/qplatformcursor.h> #include <qpa/qplatformnativeinterface.h> #include <qpa/qplatformscreen.h> @@ -363,9 +365,20 @@ void QFcitxPlatformInputContext::setFocu proxy->focusIn(); // We need to delegate this otherwise it may cause self-recursion in // certain application like libreoffice. +#if (QT_VERSION < QT_VERSION_CHECK(5,10,0)) + QTimer::singleShot(0, this, [this, window = lastWindow_](){ + if (window != lastWindow_) { + return; + } + if (validICByWindow(window.data())) { + cursorRectChanged(); + } + }); +#else QMetaObject::invokeMethod(this, "updateCursorRect", Qt::QueuedConnection, Q_ARG(QPointer<QWindow>, lastWindow_)); +#endif } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor