seat: Rewrite handle_scroll in terms of MetaWaylandPointer

This commit is contained in:
Jasper St. Pierre 2014-04-17 17:52:28 -04:00
parent 24eb737858
commit dde96951a7

View File

@ -310,6 +310,7 @@ static void
handle_scroll_event (MetaWaylandSeat *seat,
const ClutterEvent *event)
{
MetaWaylandPointer *pointer = &seat->pointer;
struct wl_resource *resource;
struct wl_list *l;
wl_fixed_t x_value = 0, y_value = 0;
@ -350,7 +351,7 @@ handle_scroll_event (MetaWaylandSeat *seat,
return;
}
l = &seat->pointer.focus_resource_list;
l = &pointer->focus_resource_list;
wl_resource_for_each (resource, l)
{
if (x_value)