Event backlog (GDK_MOTION_NOTIFY) for all gestures not just GtkGestureStylus
Currently only GtkGestureStylus
provides a way to access compressed GDK_MOTION_NOTIFY
events. However, in a drawing application it might be desired to allow mouse drawing with similar accuracy. In fact, the code for gtk_stylus_get_backlog
(https://gitlab.gnome.org/GNOME/gtk/-/blob/master/gtk/gtkgesturestylus.c#L318) doesn't contain anything specific for stylus gestures but should be generic to all gestures.
For this to work, however, one would have to change the behavior in gdk_motion_event_push_history
as well, as it only pushes events to the backlog if the device has multiple tools available (https://gitlab.gnome.org/GNOME/gtk/-/blob/master/gdk/gdkevents.c#L717). I am yet unsure whether it could be beneficial to have accurate events for simple pointer movements as well or if a pressed button is required (https://gitlab.gnome.org/GNOME/gtk/-/blob/master/gdk/gdkevents.c#L785).