From fa91255049da52dc49689175c6ae038d91d5b710 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 24 Sep 2013 11:41:35 +0100 Subject: [PATCH] Use new wl_resource_for_each to send updated seat capabilities Signed-off-by: Chris Michael --- src/bin/e_comp_wl.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 719d125..3e97ccd 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -909,7 +909,7 @@ e_comp_wl_input_modifiers_update(unsigned int serial) static void _seat_send_updated_caps(struct wl_seat *seat) { - struct wl_list *lst; + struct wl_resource *res; enum wl_seat_capability caps = 0; if (seat->pointer) @@ -919,9 +919,8 @@ _seat_send_updated_caps(struct wl_seat *seat) if (seat->touch) caps |= WL_SEAT_CAPABILITY_TOUCH; - for (lst = seat->base_resource_list.next; - lst != &seat->base_resource_list; lst = lst->next) - wl_seat_send_capabilities(wl_resource_from_link(lst), caps); + wl_resource_for_each(res, &seat->base_resource_list) + wl_seat_send_capabilities(res, caps); } static void -- 2.7.4