summaryrefslogtreecommitdiffstats
path: root/src/compositor/wayland_wrapper/qwltouch.cpp
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-02-03 14:37:25 +0200
committerGiulio Camuffo <giulio.camuffo@jollamobile.com>2015-02-03 13:32:33 +0000
commit18c16b7caeafe3fbd745a18e54af0dd0b40e54b3 (patch)
tree035a00fcb5f234a92d87643a4e869edd2e046ab4 /src/compositor/wayland_wrapper/qwltouch.cpp
parent6966431db6c87c9e7d1bfe0b89a6277eed90be71 (diff)
Update the protocol to 1.4 and raise the required libwayland version
Wayland 1.4 introduces wl_subsurface which is quite an important addition. Change-Id: I48375f60adce556c9989872319f4d073e4a7b13b Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/compositor/wayland_wrapper/qwltouch.cpp')
-rw-r--r--src/compositor/wayland_wrapper/qwltouch.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/compositor/wayland_wrapper/qwltouch.cpp b/src/compositor/wayland_wrapper/qwltouch.cpp
index 85f065b59..ba5f62cab 100644
--- a/src/compositor/wayland_wrapper/qwltouch.cpp
+++ b/src/compositor/wayland_wrapper/qwltouch.cpp
@@ -90,6 +90,17 @@ void Touch::focusDestroyed(void *data)
m_focusResource = 0;
}
+void Touch::touch_destroy_resource(Resource *resource)
+{
+ if (m_focusResource == resource)
+ m_focusResource = 0;
+}
+
+void Touch::touch_release(Resource *resource)
+{
+ wl_resource_destroy(resource->handle);
+}
+
void Touch::sendCancel()
{
if (m_focusResource)