[PATCH] input: send frame after axis event in default grab

Marek Chalupa mchqwerty at gmail.com
Mon Feb 1 15:16:17 UTC 2016

Clients that implement version 5 of pointer wait for the frame
after pointer events (e. g. GTK+ clients). We send it after motion
and button, but not after the axis event in default grab.

Send the frame after the axis event, but only in the default grab,
so that some other grabs (implementing kinetic scrolling or so)
can decide when to send the frame itself

Signed-off-by: Marek Chalupa <mchqwerty at gmail.com>
 src/input.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/input.c b/src/input.c
index 2539fa7..32ad20a 100644
--- a/src/input.c
+++ b/src/input.c
@@ -404,6 +404,7 @@ default_grab_pointer_axis(struct weston_pointer_grab *grab,
 			  struct weston_pointer_axis_event *event)
 	weston_pointer_send_axis(grab->pointer, time, event);
+	weston_pointer_send_frame(grab->pointer);
 static void

More information about the wayland-devel mailing list