xserver-multidpi/hw/xwayland
Scott Anderson cd285922cd xwayland: use wayland axis_discrete event
This prevents multiple scroll events happening for wayland compositors
which send axis values other than 10. For example, libinput will
typically return 15 for each scroll wheel step, and if a wayland
compositor sends those to xwayland without normalising them, 2 scroll
wheel steps will end up as 3 xorg scroll events. By listening for the
discrete_axis event, this will now correctly send only 2 xorg scroll
events.

The wayland protocol gurantees that there will always be an axis event
following an axis_discrete event. However, it does not gurantee that
other events (including other axis_discrete+axis pairs) will not happen
in between them. So we must keep a list of outstanding axis_discrete
events.

Signed-off-by: Scott Anderson <scott@anderso.nz>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2018-08-30 16:45:43 +10:00
..
.gitignore glamor: Implement PixmapFromBuffers and BuffersFromPixmap 2018-03-05 13:27:49 -05:00
drm.xml wayland: Sync drm.xml with Mesa 2017-07-05 10:13:04 -04:00
Makefile.am xwayland: Add glamor egl_backend for EGLStreams 2018-04-24 16:51:18 -04:00
meson.build xwayland: Add glamor egl_backend for EGLStreams 2018-04-24 16:51:18 -04:00
xwayland-cursor.c xwayland: Fix non-argb cursor conversion 2017-12-06 10:15:57 -05:00
xwayland-cvt.c xwayland: Add hack for FWXGA resolution #99574 2017-02-08 12:32:16 -05:00
xwayland-glamor-eglstream.c xwayland: simplify xwl_glamor_pixmap_get_wl_buffer() 2018-06-21 10:54:10 -04:00
xwayland-glamor-gbm.c glamor: Unbreak glamor_fd_from_pixmap() 2018-06-27 15:07:56 -04:00
xwayland-glamor-xv.c xwayland: use the lowercase xnf.*alloc API 2017-09-06 08:56:39 +10:00
xwayland-glamor.c xwayland: Enable DRI3 for glamor 2018-07-25 14:25:42 -04:00
xwayland-input.c xwayland: use wayland axis_discrete event 2018-08-30 16:45:43 +10:00
xwayland-output.c xwayland: rotate logical size for RRMode 2018-07-25 14:18:51 -04:00
xwayland-present.c xwayland: simplify xwl_glamor_pixmap_get_wl_buffer() 2018-06-21 10:54:10 -04:00
xwayland-shm.c xserver: Check the right HAVE_*_CONFIG_H. 2017-03-23 13:17:39 -04:00
xwayland-vidmode.c xwayland: Pretend we support viewport in vidmode 2016-03-28 14:10:59 -04:00
xwayland.c xwayland: simplify xwl_glamor_pixmap_get_wl_buffer() 2018-06-21 10:54:10 -04:00
xwayland.h xwayland: use wayland axis_discrete event 2018-08-30 16:45:43 +10:00