xserver/hw/xwayland
Jonas Ådahl a779fda224 xwayland: Use the CLOCK_MONOTONIC clock
By default the X server will try CLOCK_MONOTONIC_COARSE before
CLOCK_MONOTONIC, while A Wayland compositor may only support getting
their timestamps from the CLOCK_MONOTONIC clock. This causes various
issues since it may happen that a timestamp from CLOCK_MONOTONIC
retrieved before a sending an X request will still be "later" than the
timestamp the X server than gets after receiving the request, due to the
fact that CLOCK_MONOTONIC_COARSE has a lower resolution.

To avoid these issues, make Xwayland always use CLOCK_MONOTONIC, so
that it becomes possible for Wayland compositor only supporting
CLOCK_MONOTONIC and X server to use the same clock.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
Acked-by: Daniel Stone <daniels@collabora.com>
Tested-by: Olivier Fourdan <ofourdan@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-05-31 08:44:38 +10:00
..
.gitignore Xwayland DDX 2014-04-03 15:19:22 -07:00
Makefile.am xwayland: add glamor Xv adaptor 2016-03-09 14:03:03 -05:00
drm.xml xwayland: Add glamor and DRI3 support 2014-06-24 15:09:55 -07:00
xwayland-cursor.c xwayland: call through to miPointerWarpCursor on warp_cursor 2015-09-18 14:55:00 +02:00
xwayland-cvt.c xwayland: do not include frequency in mode name 2016-03-28 14:09:09 -04:00
xwayland-glamor-xv.c xwayland: Fix compiler warning in GLAMOR Xv 2016-04-15 16:22:16 -04:00
xwayland-glamor.c xwayland: add glamor Xv adaptor 2016-03-09 14:03:03 -05:00
xwayland-input.c xwayland: Move sprite invalidation logic into mipointer 2016-05-25 11:00:56 -04:00
xwayland-output.c xwayland: fix a crash on output removal 2016-03-01 09:56:31 -05:00
xwayland-shm.c xwayland-shm: fortify fallocate against EINTR 2016-04-25 15:29:40 -04:00
xwayland-vidmode.c xwayland: Pretend we support viewport in vidmode 2016-03-28 14:10:59 -04:00
xwayland.c xwayland: Use the CLOCK_MONOTONIC clock 2016-05-31 08:44:38 +10:00
xwayland.h xwayland: add glamor Xv adaptor 2016-03-09 14:03:03 -05:00