diff options
author | Po Lu <luangruo@yahoo.com> | 2022-07-29 10:13:54 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-07-29 10:14:04 +0800 |
commit | 1cdc64cdda59fd6ff84e0fd6da9b61c5451cb9e5 (patch) | |
tree | e0a499fe54cf9502424619ae0cae2b838506081e /src/xterm.h | |
parent | f2465b6b2ff64fe81612b5a02c16a98942c5ca57 (diff) | |
download | emacs-1cdc64cdda59fd6ff84e0fd6da9b61c5451cb9e5.tar.gz emacs-1cdc64cdda59fd6ff84e0fd6da9b61c5451cb9e5.tar.bz2 emacs-1cdc64cdda59fd6ff84e0fd6da9b61c5451cb9e5.zip |
Implement extended frame synchronization
* src/xterm.c (x_atom_refs): New atom _NET_WM_FRAME_TIMINGS.
(x_sync_update_finish, x_sync_update_begin): New frame.
(x_update_begin, x_update_end, XTframe_up_to_date): Begin and
end frames accordingly if extended frame synchronization is
enabled.
(handle_one_xevent): Ignore timing and frame drawn events.
* src/xterm.h (struct x_display_info): New atom.
(FRAME_X_COUNTER_VALUE): New macro.
Diffstat (limited to 'src/xterm.h')
-rw-r--r-- | src/xterm.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/xterm.h b/src/xterm.h index b9e7b094e31..3e237158e7e 100644 --- a/src/xterm.h +++ b/src/xterm.h @@ -614,7 +614,7 @@ struct x_display_info Xatom_net_wm_state_shaded, Xatom_net_frame_extents, Xatom_net_current_desktop, Xatom_net_workarea, Xatom_net_wm_opaque_region, Xatom_net_wm_ping, Xatom_net_wm_sync_request, Xatom_net_wm_sync_request_counter, - Xatom_net_wm_frame_drawn, Xatom_net_wm_user_time, + Xatom_net_wm_frame_drawn, Xatom_net_wm_frame_timings, Xatom_net_wm_user_time, Xatom_net_wm_user_time_window, Xatom_net_client_list_stacking, Xatom_net_wm_pid; @@ -1211,8 +1211,12 @@ extern void x_mark_frame_dirty (struct frame *f); #endif #ifdef HAVE_XSYNC -#define FRAME_X_BASIC_COUNTER(f) FRAME_X_OUTPUT (f)->basic_frame_counter -#define FRAME_X_EXTENDED_COUNTER(f) FRAME_X_OUTPUT (f)->extended_frame_counter +#define FRAME_X_BASIC_COUNTER(f) \ + FRAME_X_OUTPUT (f)->basic_frame_counter +#define FRAME_X_EXTENDED_COUNTER(f) \ + FRAME_X_OUTPUT (f)->extended_frame_counter +#define FRAME_X_COUNTER_VALUE(f) \ + FRAME_X_OUTPUT (f)->current_extended_counter_value #endif /* This is the Colormap which frame F uses. */ |