{"body":"dev-64@dev64-ThinkPad-W530:~/agl-master/meta-agl/meta-agl/recipes-graphics/wayland$ git diff --staged\ndiff --git a/meta-agl/recipes-graphics/wayland/weston/fix-touchscreen-crash.patch b/meta-agl/recipes-graphics/wayland/weston/fix-touchscreen-crash.patch\nnew file mode 100644\nindex 0000000..0334c10\ndiff --git a/meta-agl/recipes-graphics/wayland/weston/fix-touchscreen-crash.patch b/meta-agl/recipes-graphics/wayland/weston/fix-touchscreen-crash.patch\nnew file mode 100644\nindex 0000000..0334c10\nindex 0000000..0334c10\n--- /dev/null\n+++ b/meta-agl/recipes-graphics/wayland/weston/fix-touchscreen-crash.patch\n@@ -0,0 +1,25 @@\n+Fix Weston crash on touchscreen input\n+\n+Bug-AGL: SPEC-309\n+\n+Upstream-Status: Backport [https://cgit.freedesktop.org/wayland/weston/commit/src/input.c?id=2c40d1d30eabe46706822a8b5c94579aeba58e84]\n+===================================================\n+--- src/input.c        2015-09-14 14:23:28.000000000 -0400\n++++ src/input.c        2016-11-09 16:06:28.371959318 -0500\n+@@ -245,11 +245,14 @@\n+       struct wl_list *resource_list;\n+       wl_fixed_t sx, sy;\n+ \n++      if (!touch->focus)\n++              return;\n++\n+       weston_view_from_global_fixed(touch->focus, x, y, &sx, &sy);\n+ \n+       resource_list = &touch->focus_resource_list;\n+ \n+-      if (!wl_list_empty(resource_list) && touch->focus) {\n++      if (!wl_list_empty(resource_list)) {\n+               serial = wl_display_next_serial(display);\n+               wl_resource_for_each(resource, resource_list)\n+                               wl_touch_send_down(resource, serial, time,\n+\ndiff --git a/meta-agl/recipes-graphics/wayland/weston_%.bbappend b/meta-agl/recipes-graphics/wayland/weston_%.bbappend\nindex 95b886c..573b481 100644\n--- a/meta-agl/recipes-graphics/wayland/weston_%.bbappend\n+++ b/meta-agl/recipes-graphics/wayland/weston_%.bbappend\n@@ -4,6 +4,7 @@ SRC_URI_append = \"\\\n     file://0001-compositor-drm.c-Launch-without-input-devices.patch \\\n     file://weston.service \\\n     file://weston.ini \\\n+    file://fix-touchscreen-crash.patch \\\n     \"\n \n inherit systemd\n","name":"","extension":"txt","url":"https://www.irccloud.com/pastebin/6LxdUwon","modified":1478787780,"id":"6LxdUwon","size":2067,"lines":48,"own_paste":false,"theme":"","date":1478787780}