GNOME Bugzilla – Bug 707466
Some timestamp fixes
Last modified: 2014-02-24 17:58:26 UTC
That rely on clutter bug 706543. Nothing critical (except for the clutter bug, unless we reintroduce the hackish patch in gnome-shell), just nice to have.
Created attachment 254071 [details] [review] wayland: use the timestamps from events Clutter has learned to use monotonic times for the events, and so does X (at least Xwayland, which is an implementation we know and we can rely upon), so the values are directly comparable.
Created attachment 254072 [details] [review] display: shortcut get_time_roundtrip() when running as a wayland compositor In wayland, we can make some assumptions about the behavior and configuration of the X server (which is Xwayland), including on the time it uses, and that way avoiding a roundtrip (potentially deadly, if by chance the X server is also blocking on us or needs us to flush the wayland socket buffer). Note that we bypass get_current_time() entirely, as it is assumed the function is called always to translated CurrentTime into a real value.
Review of attachment 254071 [details] [review]: OK.
Review of attachment 254072 [details] [review]: typo in commit message: "called to translated"
It appears this was fixed long ago, but we forgot to close it.