summaryrefslogtreecommitdiff
path: root/ivi-input-controller/src/ivi-input-controller.c
diff options
context:
space:
mode:
authorEmre Ucan <eucan@de.adit-jv.com>2015-05-18 10:06:14 +0200
committerNobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp>2015-06-15 16:23:31 +0900
commit6332daec28ef2e965262e049696b5ed30483fb95 (patch)
tree3ba8a3332966b1f5b5e7fd4b52cced3fe49dba7e /ivi-input-controller/src/ivi-input-controller.c
parent18b8e27c9464e8e679adadb02ef639780bb8fd8b (diff)
downloadwayland-ivi-extension-6332daec28ef2e965262e049696b5ed30483fb95.tar.gz
ivi-input-controller: Send pointer_motion_event outside the surface, if a button is pressed.
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Diffstat (limited to 'ivi-input-controller/src/ivi-input-controller.c')
-rw-r--r--ivi-input-controller/src/ivi-input-controller.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ivi-input-controller/src/ivi-input-controller.c b/ivi-input-controller/src/ivi-input-controller.c
index 87653d3..06a63f9 100644
--- a/ivi-input-controller/src/ivi-input-controller.c
+++ b/ivi-input-controller/src/ivi-input-controller.c
@@ -321,8 +321,9 @@ pointer_grab_motion(struct weston_pointer_grab *grab, uint32_t time,
/* Do not send motion events for coordinates outside the surface */
weston_view_from_global_fixed(view, x, y, &sx, &sy);
- if (!pixman_region32_contains_point(&surf->input, wl_fixed_to_int(sx),
+ if ((!pixman_region32_contains_point(&surf->input, wl_fixed_to_int(sx),
wl_fixed_to_int(sy), NULL))
+ && (grab->pointer->button_count == 0))
continue;
surface_client = wl_resource_get_client(surf->resource);