seat: Reduce indentation
This commit is contained in:
parent
dfc7f7222b
commit
c595a9c29f
@ -281,6 +281,9 @@ handle_scroll_event (MetaWaylandSeat *seat,
|
|||||||
|
|
||||||
notify_motion (seat, event);
|
notify_motion (seat, event);
|
||||||
|
|
||||||
|
if (!seat->pointer.focus_resource)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (clutter_event_get_scroll_direction (event))
|
switch (clutter_event_get_scroll_direction (event))
|
||||||
{
|
{
|
||||||
case CLUTTER_SCROLL_UP:
|
case CLUTTER_SCROLL_UP:
|
||||||
@ -307,11 +310,10 @@ handle_scroll_event (MetaWaylandSeat *seat,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (seat->pointer.focus_resource)
|
wl_pointer_send_axis (seat->pointer.focus_resource,
|
||||||
wl_pointer_send_axis (seat->pointer.focus_resource,
|
clutter_event_get_time (event),
|
||||||
clutter_event_get_time (event),
|
axis,
|
||||||
axis,
|
value);
|
||||||
value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user