summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorRomain Pokrzywka <romain.pokrzywka@kdab.com>2012-07-19 12:22:30 -0700
committerQt by Nokia <qt-info@nokia.com>2012-07-20 03:13:18 +0200
commitdc3ceed88dc12b71d7ff6b45a7374257800351ed (patch)
tree418a87cdae083ad238820d9e2860cdf568bb78c5 /src/gui
parenta9c50bccd055567340dd6925c92d1dd62b73e143 (diff)
Don't discard QPA mouse events without an associated window or widget
The corresponding window and widget are found by the function later on if not provided by the plugin, so having a null widget pointer is valid. This check is unnecessary and breaks integration of QPA plugins not widget-aware, such as the LinuxInput and TsLib ones. The bug has already been fixed in Qt5. Change-Id: I650308ce14e84d42b0c6d64f4f0ae1720728054c Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/kernel/qapplication_qpa.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gui/kernel/qapplication_qpa.cpp b/src/gui/kernel/qapplication_qpa.cpp
index 5e55cbedc9..fe7505fe5a 100644
--- a/src/gui/kernel/qapplication_qpa.cpp
+++ b/src/gui/kernel/qapplication_qpa.cpp
@@ -626,8 +626,6 @@ void QApplication::setMainWidget(QWidget *mainWidget)
void QApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent *e)
{
- if (!e->widget)
- return;
// qDebug() << "handleMouseEvent" << tlw << ev.pos() << ev.globalPos() << hex << ev.buttons();
static QWeakPointer<QWidget> implicit_mouse_grabber;