summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandsurfaceitem.h
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-16 12:18:43 +0200
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-01-20 09:28:10 +0100
commit498946d6e9c20d4e8af28ee942de5bf4cf5eaf78 (patch)
treede0161d1d94ebeb2f702858eddc3d6e1ec489fb1 /src/compositor/compositor_api/qwaylandsurfaceitem.h
parentc3fafd16d380e031463c3f9e25320e914afbccf0 (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.h1
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();