diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-09-22 10:43:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-22 10:43:48 -0400 |
commit | 087894ae99a680d9228d03bae66becc6112682a1 (patch) | |
tree | 3f3a6ff372ccdd720dabee9b100b9964ab69f0aa /examples | |
parent | b6cf9b14a420fb02d23c85fa22965a697747ad80 (diff) | |
parent | e38248f34c3eed879486347f0c0c5db3ceca4a68 (diff) |
Merge pull request #152 from acrisci/feature/wlr-seat-axis-events
wlr-seat cursor axis events
Diffstat (limited to 'examples')
-rw-r--r-- | examples/compositor.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/compositor.c b/examples/compositor.c index c67b8481..56974486 100644 --- a/examples/compositor.c +++ b/examples/compositor.c @@ -468,10 +468,11 @@ static void handle_cursor_motion_absolute(struct wl_listener *listener, } static void handle_cursor_axis(struct wl_listener *listener, void *data) { - //struct sample_state *sample = - //wl_container_of(listener, sample, cursor_axis); - //struct wlr_event_pointer_axis *event = data; - wlr_log(L_DEBUG, "TODO: handle cursor axis"); + struct sample_state *sample = + wl_container_of(listener, sample, cursor_axis); + struct wlr_event_pointer_axis *event = data; + wlr_seat_pointer_send_axis(sample->wl_seat, event->time_sec, + event->orientation, event->delta); } static void handle_cursor_button(struct wl_listener *listener, void *data) { |