diff --git a/plugin-kbindicator/src/content.cpp b/plugin-kbindicator/src/content.cpp index ed034108d..6d4040756 100644 --- a/plugin-kbindicator/src/content.cpp +++ b/plugin-kbindicator/src/content.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -129,7 +130,8 @@ QWidget* Content::widget(Controls cnt) const bool Content::eventFilter(QObject *object, QEvent *event) { - if (event->type() == QEvent::QEvent::MouseButtonRelease) + if (event->type() == QEvent::QEvent::MouseButtonRelease + && static_cast(event)->button() == Qt::LeftButton) { if (object == m_capsLock) emit controlClicked(Controls::Caps);