projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c31f624
)
window.c: Also grab touch events when grabbing input
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 29 Apr 2014 21:30:44 +0000
(14:30 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 29 Apr 2014 21:30:44 +0000
(14:30 -0700)
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
adcec0d
..
466ce86
100644
(file)
--- a/
clients/window.c
+++ b/
clients/window.c
@@
-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) {