diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2015-01-16 12:18:43 +0200 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2015-01-20 09:28:10 +0100 |
commit | 498946d6e9c20d4e8af28ee942de5bf4cf5eaf78 (patch) | |
tree | de0161d1d94ebeb2f702858eddc3d6e1ec489fb1 /src/compositor/compositor_api/qwaylandsurfaceitem.h | |
parent | c3fafd16d380e031463c3f9e25320e914afbccf0 (diff) |
Send a touch cancel event when we stop getting input
Take a grab when a touch gesture begins and send a touch cancel event
when we lose the grab. That makes sure that we don't leave the client
with a broken input state if some item like Flickable steals the
events from the QWaylandSurfaceItem.
Change-Id: I1e07836041a25cdbabff0d8559c4e06cbac27e7e
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurfaceitem.h')
-rw-r--r-- | src/compositor/compositor_api/qwaylandsurfaceitem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurfaceitem.h b/src/compositor/compositor_api/qwaylandsurfaceitem.h index 93283355f..2805db52a 100644 --- a/src/compositor/compositor_api/qwaylandsurfaceitem.h +++ b/src/compositor/compositor_api/qwaylandsurfaceitem.h @@ -100,6 +100,7 @@ protected: void keyReleaseEvent(QKeyEvent *event); void touchEvent(QTouchEvent *event); + void mouseUngrabEvent() Q_DECL_OVERRIDE; public slots: void takeFocus(); |