diff options
author | Dorota Czaplejewicz <dorota.czaplejewicz@puri.sm> | 2019-06-17 09:48:55 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-06-17 16:01:29 +0300 |
commit | 5027b23dc2223a803086f9ae6caab4f2a829cc45 (patch) | |
tree | 753243cfd6454fdb97b6abc637ede6612f2dbb7f /backend/x11/input_device.c | |
parent | ce3f4c3fe1ed3d99500acf4e41293eb6c55f9a4d (diff) |
x11: Send a frame event on the pointer after button events
Without the immediate frame event, the button event would not be processed in time: https://source.puri.sm/Librem5/phoc/issues/
Diffstat (limited to 'backend/x11/input_device.c')
-rw-r--r-- | backend/x11/input_device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/x11/input_device.c b/backend/x11/input_device.c index 3a21f69c..08612366 100644 --- a/backend/x11/input_device.c +++ b/backend/x11/input_device.c @@ -36,6 +36,7 @@ static void send_button_event(struct wlr_x11_output *output, uint32_t key, .state = st, }; wlr_signal_emit_safe(&output->pointer.events.button, &ev); + wlr_signal_emit_safe(&output->pointer.events.frame, &output->pointer); } static void send_axis_event(struct wlr_x11_output *output, int32_t delta, |