Handle mouse focus in the QWindowCompositor
authorJørgen Lind <jorgen.lind@nokia.com>
Tue, 10 Jan 2012 07:13:55 +0000 (08:13 +0100)
committerSamuel Rødal <samuel.rodal@nokia.com>
Tue, 10 Jan 2012 14:57:03 +0000 (15:57 +0100)
Change-Id: Ibb994eb8b9e2c69aecdee7daf704475d4d84b183
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
examples/qwindow-compositor/qwindowcompositor.cpp

index 14d43c4..bb2c0d0 100644 (file)
@@ -224,6 +224,7 @@ bool QWindowCompositor::eventFilter(QObject *obj, QEvent *event)
         } else {
             QPoint local;
             WaylandSurface *targetSurface = surfaceAt(me->pos(), &local);
+            setMouseFocus(targetSurface);
             if (targetSurface) {
                 targetSurface->sendMouseMoveEvent(local);
             }