]> git.eshelyaron.com Git - emacs.git/commit
Correctly implement refresh synchronization fences
authorPo Lu <luangruo@yahoo.com>
Thu, 4 Aug 2022 07:37:54 +0000 (15:37 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 4 Aug 2022 07:38:23 +0000 (15:38 +0800)
commit78129dcf53ab2b1ce49eab28dba89dea9f687284
tree78e86ecfacea3de899bd0958225f2c4c097cda84
parent3e60f7f3c31a8491b085684121e5229be56b3538
Correctly implement refresh synchronization fences

* configure.ac (HAVE_XSYNC): Also check for XSyncTriggerFence.

* src/xfns.c (Fx_create_frame): Create fences.
* src/xterm.c (x_atom_refs): New atom.
(x_sync_trigger_fence, x_sync_init_fences, x_sync_free_fences):
New functions.
(x_sync_update_finish): Trigger the appropriate fence.
(x_free_frame_resources): Free fences.
* src/xterm.h (struct x_display_info): New atom
`_NET_WM_SYNC_FENCES'.
(struct x_output): New field `sync_fences'.
configure.ac
src/xfns.c
src/xterm.c
src/xterm.h