--- weston-1.9.0/src/input.c.orig 2015-09-15 02:23:28.000000000 +0800 +++ weston-1.9.0/src/input.c 2015-11-02 11:42:13.510964525 +0800 @@ -245,6 +245,9 @@ struct wl_list *resource_list; wl_fixed_t sx, sy; + if (!touch->focus) + return; + weston_view_from_global_fixed(touch->focus, x, y, &sx, &sy); resource_list = &touch->focus_resource_list;