diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2013-05-06 21:49:55 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-05-06 21:49:55 -0400 |
commit | 80fb82df3a9257316bc0bf512069a0e3a971ca3c (patch) | |
tree | bdd92abe8b1a5cac9a658852520dcfeb48225c16 | |
parent | b5e26104ee7f8bc4b1552ab3e9be4aff5b58244a (diff) |
input: Drop find_resource_for_client()
We can use find_resource_for_surface() instead now that it's all in the
same file.
-rw-r--r-- | src/input.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/src/input.c b/src/input.c index b0286768..8bbda85c 100644 --- a/src/input.c +++ b/src/input.c @@ -30,19 +30,6 @@ #include "../shared/os-compatibility.h" #include "compositor.h" -static struct wl_resource * -find_resource_for_client(struct wl_list *list, struct wl_client *client) -{ - struct wl_resource *r; - - wl_list_for_each(r, list, link) { - if (r->client == client) - return r; - } - - return NULL; -} - static void empty_region(pixman_region32_t *region) { @@ -1063,8 +1050,8 @@ touch_set_focus(struct weston_seat *ws, struct wl_surface *surface) if (surface) { resource = - find_resource_for_client(&seat->touch->resource_list, - surface->resource.client); + find_resource_for_surface(&seat->touch->resource_list, + surface); if (!resource) { weston_log("couldn't find resource\n"); return; |