summaryrefslogtreecommitdiff
path: root/gdk/gdkeventsprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-06-08 20:29:38 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-06-09 13:43:03 -0400
commitb9cde6f8eadde15abb6137995da959937617d4e6 (patch)
tree32eeed8d65a773e5ba7ccdbf20ac30172c8aa243 /gdk/gdkeventsprivate.h
parent86eece78b16e40dec6aca5a3b20d9e6eb648ad3c (diff)
downloadgtk+-b9cde6f8eadde15abb6137995da959937617d4e6.tar.gz
Keep scroll history
Similar to how we keep motion history for compressed events, keep scroll history for compressed scroll events.
Diffstat (limited to 'gdk/gdkeventsprivate.h')
-rw-r--r--gdk/gdkeventsprivate.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/gdkeventsprivate.h b/gdk/gdkeventsprivate.h
index 0fd0b3e908..a21e458746 100644
--- a/gdk/gdkeventsprivate.h
+++ b/gdk/gdkeventsprivate.h
@@ -211,6 +211,9 @@ struct _GdkTouchEvent
* @pointer_emulated: whether the scroll event was the result of
* a pointer emulation
* @tool: a #GdkDeviceTool
+ * @history: (element-type GdkScrollHistory): array of times and deltas
+ * for other scroll events that were compressed before delivering the
+ * current event
*
* Generated from button presses for the buttons 4 to 7. Wheel mice are
* usually configured to generate button press events for buttons 4 and 5
@@ -232,6 +235,7 @@ struct _GdkScrollEvent
gboolean pointer_emulated;
gboolean is_stop;
GdkDeviceTool *tool;
+ GArray *history; /* <GdkScrollHistory> */
};
/*