diff --git a/libqt5-ukui-style/settings/black-list.h b/libqt5-ukui-style/settings/black-list.h index da25930..bf69d0e 100644 --- a/libqt5-ukui-style/settings/black-list.h +++ b/libqt5-ukui-style/settings/black-list.h @@ -108,4 +108,16 @@ static const QStringList focusStateActiveList() { return l; } +static const QStringList windowManageBlackList() { + QStringList l; + l << "iflyime-spe-sym"; + l << "iflyime-qimpanel"; + l << "iflyime-setw"; + l << "iflyime-sett"; + l << "iflyime-qim"; + l << "iflyime-hw"; + l << "SpecificSymbol"; + return l; +} + #endif // BLACKLIST_H diff --git a/ukui-styles/window-manager.cpp b/ukui-styles/window-manager.cpp index e3efd8e..44903ee 100644 --- a/ukui-styles/window-manager.cpp +++ b/ukui-styles/window-manager.cpp @@ -34,6 +34,7 @@ #include #include +#include "black-list.h" WindowManager::WindowManager(QObject *parent) : QObject(parent) { @@ -122,6 +123,10 @@ bool WindowManager::eventFilter(QObject *obj, QEvent *e) } case QEvent::MouseMove: { //if (QWidget::mouseGrabber()) return false; + //fixbug#182587 + if(windowManageBlackList().contains(qApp->applicationName()) || windowManageBlackList().contains(qAppName())){ + return false; + } QMouseEvent *event = static_cast(e); /*! \note In x11, accuracy of the MouseEvent translated from TouchEvent is not