window.c: Also grab touch events when grabbing input

This commit is contained in:
Kristian Høgsberg 2014-04-29 14:30:44 -07:00
parent c31f624141
commit 1f67117f6f

View File

@ -2979,9 +2979,12 @@ touch_handle_down(void *data, struct wl_touch *wl_touch,
return;
}
widget = window_find_widget(input->touch_focus,
wl_fixed_to_double(x_w),
wl_fixed_to_double(y_w));
if (input->grab)
widget = input->grab;
else
widget = window_find_widget(input->touch_focus,
wl_fixed_to_double(x_w),
wl_fixed_to_double(y_w));
if (widget) {
struct touch_point *tp = xmalloc(sizeof *tp);
if (tp) {