agl-ivi-multimedia: pull virtual/pulseaudio-config conditionnaly
[AGL/meta-agl-demo.git] / recipes-graphics / wayland / wayland-ivi-extension / 0001-Resolve-weston-crush-when-repeat-touching-very-quick.patch
1 From 97af4843a4705cd7d5b6b69abb9002fd974a5b94 Mon Sep 17 00:00:00 2001
2 From: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
3 Date: Fri, 12 Jan 2018 01:53:01 +0900
4 Subject: [PATCH] Resolve weston cursh when repeat touching very quickly
5
6 Weston sometimes crush while the user repeat touching very
7 quickly icons/shortcuts on HomeScreen.
8
9 Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
10 ---
11  ivi-input-modules/ivi-input-controller/src/ivi-input-controller.c | 4 ++++
12  1 file changed, 4 insertions(+)
13
14 diff --git a/ivi-input-modules/ivi-input-controller/src/ivi-input-controller.c b/ivi-input-modules/ivi-input-controller/src/ivi-input-controller.c
15 index b0fe37d..f1a31d0 100644
16 --- a/ivi-input-modules/ivi-input-controller/src/ivi-input-controller.c
17 +++ b/ivi-input-modules/ivi-input-controller/src/ivi-input-controller.c
18 @@ -557,6 +557,10 @@ touch_grab_up(struct weston_touch_grab *grab, uint32_t time, int touch_id)
19      const struct ivi_layout_interface *interface =
20          seat->input_ctx->ivi_layout_interface;
21  
22 +    /* if touch device has no focused view, there is nothing to do*/
23 +    if (grab->touch->focus == NULL)
24 +        return;
25 +
26      /* For each surface_ctx, check for focus and send */
27      wl_list_for_each(surf_ctx, &seat->input_ctx->surface_list, link) {
28          struct weston_surface *surf, *send_surf;
29 -- 
30 2.7.4
31