seat: Reduce indentation

This commit is contained in:
Jasper St. Pierre 2014-03-10 11:08:01 -04:00
parent dfc7f7222b
commit c595a9c29f

View File

@ -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