summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorChokshi, Mitul <mitul.chokshi@intel.com>2015-10-09 08:28:47 +0000
committerDerek Foreman <derekf@osg.samsung.com>2015-10-09 11:20:41 -0500
commitd669714d7161d90e04879eae03a129e7f240b948 (patch)
treed99b9be4c088dc21dd48d9ae0391be52060fe491 /src/input.c
parentc5a011f1e04878ec7ac6855168efe58526d5776a (diff)
downloadweston-d669714d7161d90e04879eae03a129e7f240b948.tar.gz
input: add new client to resource_list instead of focus_resource_list
When new client registers touch listener, it was added to focus resource list. At this point if another client "without" touch listener is in focus then subsequent touch events are sent to new client with another client's resources causing new client to stop rendering. Now new client is added to resource list by default and it'll be added to focus resource list only if its in focus. Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input.c b/src/input.c
index 2e5cd047..500c39ae 100644
--- a/src/input.c
+++ b/src/input.c
@@ -1934,10 +1934,10 @@ seat_get_touch(struct wl_client *client, struct wl_resource *resource,
if (touch->focus &&
wl_resource_get_client(touch->focus->surface->resource) == client) {
- wl_list_insert(&touch->resource_list,
+ wl_list_insert(&touch->focus_resource_list,
wl_resource_get_link(cr));
} else {
- wl_list_insert(&touch->focus_resource_list,
+ wl_list_insert(&touch->resource_list,
wl_resource_get_link(cr));
}
wl_resource_set_implementation(cr, &touch_interface,