]> git.eshelyaron.com Git - emacs.git/commit
Improve X server time computation
authorPo Lu <luangruo@yahoo.com>
Wed, 3 Aug 2022 07:13:14 +0000 (15:13 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 3 Aug 2022 07:14:29 +0000 (15:14 +0800)
commitbb3e281236bd39c2fbd0702c4f3e07dfaec7afe2
tree4bea86b1b4ec6327085c2457e912f97282ede353
parent99bbc1fa23c3a54f1cbd2c56c57773dd471b3ef3
Improve X server time computation

* src/xterm.c (x_sync_get_monotonic_time): Use that if
available.
(x_display_set_last_user_time): Compute an offset between the
monotonic time and the X server time if they are not identical.
* src/xterm.h (struct x_display_info): New field
`server_time_offset'.
src/xterm.c
src/xterm.h