mirror of
https://github.com/brl/mutter.git
synced 2025-07-27 03:58:32 +00:00
seat: Rewrite handle_scroll in terms of MetaWaylandPointer
This commit is contained in:
@@ -310,6 +310,7 @@ static void
|
|||||||
handle_scroll_event (MetaWaylandSeat *seat,
|
handle_scroll_event (MetaWaylandSeat *seat,
|
||||||
const ClutterEvent *event)
|
const ClutterEvent *event)
|
||||||
{
|
{
|
||||||
|
MetaWaylandPointer *pointer = &seat->pointer;
|
||||||
struct wl_resource *resource;
|
struct wl_resource *resource;
|
||||||
struct wl_list *l;
|
struct wl_list *l;
|
||||||
wl_fixed_t x_value = 0, y_value = 0;
|
wl_fixed_t x_value = 0, y_value = 0;
|
||||||
@@ -350,7 +351,7 @@ handle_scroll_event (MetaWaylandSeat *seat,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
l = &seat->pointer.focus_resource_list;
|
l = &pointer->focus_resource_list;
|
||||||
wl_resource_for_each (resource, l)
|
wl_resource_for_each (resource, l)
|
||||||
{
|
{
|
||||||
if (x_value)
|
if (x_value)
|
||||||
|
Reference in New Issue
Block a user