diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-27 10:22:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-27 10:22:06 -0500 |
commit | 018727b1fc41dcd739ab464c84581c44dd1497ca (patch) | |
tree | 31ae7fc75fdabcdc125bb1b3b29260503ea5b96a /backend/x11/input_device.c | |
parent | 89eacf556a64512a4d6ba8241e91f1d287007ad2 (diff) | |
parent | b45fc24b1893484c02420fbb33d7ebb69bbf1eae (diff) |
Merge pull request #1503 from emersion/pointer-frame
pointer: add a frame event
Diffstat (limited to 'backend/x11/input_device.c')
-rw-r--r-- | backend/x11/input_device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/x11/input_device.c b/backend/x11/input_device.c index 915d9958..3a21f69c 100644 --- a/backend/x11/input_device.c +++ b/backend/x11/input_device.c @@ -50,6 +50,7 @@ static void send_axis_event(struct wlr_x11_output *output, int32_t delta, .delta_discrete = delta, }; wlr_signal_emit_safe(&output->pointer.events.axis, &ev); + wlr_signal_emit_safe(&output->pointer.events.frame, &output->pointer); } static void send_pointer_position_event(struct wlr_x11_output *output, @@ -61,6 +62,7 @@ static void send_pointer_position_event(struct wlr_x11_output *output, .y = (double)y / output->wlr_output.height, }; wlr_signal_emit_safe(&output->pointer.events.motion_absolute, &ev); + wlr_signal_emit_safe(&output->pointer.events.frame, &output->pointer); } void handle_x11_xinput_event(struct wlr_x11_backend *x11, |