GdkDisplayX11: Properly translate server timestamps from _NET_WM_FRAME_* messages
authorOwen W. Taylor <otaylor@fishsoup.net>
Wed, 15 Jul 2015 16:38:38 +0000 (12:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 15 Jul 2015 16:46:06 +0000 (12:46 -0400)
commit6504b2e53468004c7936e7f79fba03291dc58128
treed239d5d8962d9bfc127789c05379c9ce5288de40
parent24e1323eb33f22c1126d1701639b2605c4443868
GdkDisplayX11: Properly translate server timestamps from _NET_WM_FRAME_* messages

When using frame times from _NET_WM_FRAME_DRAWN and _NET_WM_FRAME_TIMINGS, we
were treating them as local monotonic times, but they are actually extended-precision
versions of the server time, and need to be translated to monotonic times in the
case where the X server and client aren't running on the same system.

This fixes rendering stalls when using X over a remote ssh connection.
https://bugzilla.gnome.org/show_bug.cgi?id=741800
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkdisplay-x11.h