diff options
author | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-03-10 11:08:01 -0400 |
---|---|---|
committer | Jasper St. Pierre <jstpierre@mecheye.net> | 2014-03-10 11:36:36 -0400 |
commit | c595a9c29f6b340fc512221e9f754823ce628999 (patch) | |
tree | 9831e14f47873ecd9013df6c9c920e57057fa690 /src/wayland | |
parent | dfc7f7222b27e29e8ad2f7fcd4bb6a6c901d9bcd (diff) | |
download | mutter-c595a9c29f6b340fc512221e9f754823ce628999.tar.gz |
seat: Reduce indentation
Diffstat (limited to 'src/wayland')
-rw-r--r-- | src/wayland/meta-wayland-seat.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/wayland/meta-wayland-seat.c b/src/wayland/meta-wayland-seat.c index d73072925..eae4e077b 100644 --- a/src/wayland/meta-wayland-seat.c +++ b/src/wayland/meta-wayland-seat.c @@ -281,6 +281,9 @@ handle_scroll_event (MetaWaylandSeat *seat, notify_motion (seat, event); + if (!seat->pointer.focus_resource) + return; + switch (clutter_event_get_scroll_direction (event)) { case CLUTTER_SCROLL_UP: @@ -307,11 +310,10 @@ handle_scroll_event (MetaWaylandSeat *seat, return; } - if (seat->pointer.focus_resource) - wl_pointer_send_axis (seat->pointer.focus_resource, - clutter_event_get_time (event), - axis, - value); + wl_pointer_send_axis (seat->pointer.focus_resource, + clutter_event_get_time (event), + axis, + value); } static int |