Change-Id: Iae0402f63f39a2728b94abe68fa22592d97ea9f3
Reviewed-on: http://codereview.qt.nokia.com/3885
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Laszlo Agocs <laszlo.p.agocs@nokia.com>
void QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent *e)
{
- if (!e->window)
- return;
-
QEvent::Type type;
// move first
Qt::MouseButtons stateChange = e->buttons ^ buttons;
QWindow *window = e->window.data();
+ if (!window)
+ window = QGuiApplication::topLevelAt(e->globalPos.toPoint());
+
QPointF localPoint = e->localPos;
QPointF globalPoint = e->globalPos;