diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2012-01-11 15:50:51 +0200 |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2012-01-11 20:37:56 +0100 |
commit | 3ff93ce7368ca577b775cbca0668fedb9373a04e (patch) | |
tree | 5f9c82f6309fe5bbc47ec5b003779a23d6c335a8 /src/compositor/wayland_wrapper/wlinputdevice.cpp | |
parent | 8894f58e01b51e9b2072973edbe043ebe62858b4 (diff) |
Don't crash when sending touch events.
Change-Id: I62bf4913338e6daa3245400b0e2c7004907cb29a
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jørgen Lind <jorgen.lind@nokia.com>
Diffstat (limited to 'src/compositor/wayland_wrapper/wlinputdevice.cpp')
-rw-r--r-- | src/compositor/wayland_wrapper/wlinputdevice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/wayland_wrapper/wlinputdevice.cpp b/src/compositor/wayland_wrapper/wlinputdevice.cpp index 92eb12238..70c0560f8 100644 --- a/src/compositor/wayland_wrapper/wlinputdevice.cpp +++ b/src/compositor/wayland_wrapper/wlinputdevice.cpp @@ -131,7 +131,7 @@ void InputDevice::sendTouchPointEvent(int id, int x, int y, Qt::TouchPointState struct wl_resource *resource = base()->pointer_focus_resource; switch (state) { case Qt::TouchPointPressed: - wl_resource_post_event(resource, WL_INPUT_DEVICE_TOUCH_DOWN, time, this, id, x, y); + wl_resource_post_event(resource, WL_INPUT_DEVICE_TOUCH_DOWN, time, base()->pointer_focus, id, x, y); break; case Qt::TouchPointMoved: wl_resource_post_event(resource, WL_INPUT_DEVICE_TOUCH_MOTION, time, id, x, y); |