diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-10-20 13:21:54 +1000 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-01-18 21:36:23 +0100 |
commit | 3fca36169a0fd5f19b1b2099547060214f40b904 (patch) | |
tree | fd8c827996e1f731ba2e7312d301c5828938595e /gdk/wayland/gdkdisplay-wayland.h | |
parent | ac95bac5b817f8167dd568247b478534b960ec9e (diff) | |
download | gtk+-3fca36169a0fd5f19b1b2099547060214f40b904.tar.gz |
wayland: add support for wl_pointer frame/axis_source/axis_discrete/axis_stop
This adds support for the new wl_pointer events available in v5.
The wl_pointer.axis_source events can be ignored for the purposes here, the
main reason they exist is so that the combination of axis_source=finger and
axis_stop triggers kinetic scrolling. We don't need to care about the source,
axis_stop is enough for us to tell us when we're scrolling.
The wl_pointer.frame events group events together and is intended as a
mechanism to coalesce events together. This for example allows us to now
send a single GTK scroll event for a diagonal scroll. Previously, the two
wl_pointer.axis events had to be handled separately.
The wl_pointer.axis_discrete event sends mouse wheel clicks where
appropriate, and is translated into up/down/left/right scroll events.
https://bugzilla.gnome.org/show_bug.cgi?id=756729
Diffstat (limited to 'gdk/wayland/gdkdisplay-wayland.h')
-rw-r--r-- | gdk/wayland/gdkdisplay-wayland.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdk/wayland/gdkdisplay-wayland.h b/gdk/wayland/gdkdisplay-wayland.h index 36c663b253..1185cd5eed 100644 --- a/gdk/wayland/gdkdisplay-wayland.h +++ b/gdk/wayland/gdkdisplay-wayland.h @@ -92,6 +92,7 @@ struct _GdkWaylandDisplay GSource *event_source; int compositor_version; + int seat_version; struct xkb_context *xkb_context; |