From 5027b23dc2223a803086f9ae6caab4f2a829cc45 Mon Sep 17 00:00:00 2001 From: Dorota Czaplejewicz Date: Mon, 17 Jun 2019 09:48:55 +0000 Subject: [PATCH] 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/ --- backend/x11/input_device.c | 1 + 1 file changed, 1 insertion(+) 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,