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> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile.am | ||
| XIstubs.h | ||
| Xprintf.h | ||
| busfault.h | ||
| callback.h | ||
| client.h | ||
| closestr.h | ||
| closure.h | ||
| colormap.h | ||
| colormapst.h | ||
| cursor.h | ||
| cursorstr.h | ||
| dbus-core.h | ||
| displaymode.h | ||
| dix-config-apple-verbatim.h | ||
| dix-config.h.in | ||
| dix.h | ||
| dixaccess.h | ||
| dixevents.h | ||
| dixfont.h | ||
| dixfontstr.h | ||
| dixfontstubs.h | ||
| dixgrabs.h | ||
| dixstruct.h | ||
| eventconvert.h | ||
| events.h | ||
| eventstr.h | ||
| exevents.h | ||
| extension.h | ||
| extinit.h | ||
| extnsionst.h | ||
| gc.h | ||
| gcstruct.h | ||
| globals.h | ||
| glx_extinit.h | ||
| hotplug.h | ||
| input.h | ||
| inputstr.h | ||
| inpututils.h | ||
| kdrive-config.h.in | ||
| list.h | ||
| misc.h | ||
| miscstruct.h | ||
| nonsdk_extinit.h | ||
| opaque.h | ||
| optionstr.h | ||
| os.h | ||
| pixmap.h | ||
| pixmapstr.h | ||
| privates.h | ||
| probes.h | ||
| property.h | ||
| propertyst.h | ||
| protocol-versions.h | ||
| ptrveloc.h | ||
| region.h | ||
| regionstr.h | ||
| registry.h | ||
| resource.h | ||
| rgb.h | ||
| screenint.h | ||
| scrnintstr.h | ||
| selection.h | ||
| servermd.h | ||
| site.h | ||
| swaprep.h | ||
| swapreq.h | ||
| systemd-logind.h | ||
| validate.h | ||
| version-config.h.in | ||
| vidmodestr.h | ||
| window.h | ||
| windowstr.h | ||
| xkb-config.h.in | ||
| xkbfile.h | ||
| xkbrules.h | ||
| xkbsrv.h | ||
| xkbstr.h | ||
| xorg-config.h.in | ||
| xorg-server.h.in | ||
| xserver-properties.h | ||
| xsha1.h | ||
| xwin-config.h.in | ||