diff options
author | Ken Raeburn <raeburn@raeburn.org> | 2015-10-02 23:36:31 -0400 |
---|---|---|
committer | Ken Raeburn <raeburn@raeburn.org> | 2015-10-11 01:15:19 -0400 |
commit | 08e27d294468aa72cb06a50821dbade8ea03b2ce (patch) | |
tree | b71fc8936932d3c818847e16386a9d2736cf98a5 /lisp/emacs-lisp/lisp-mode.el | |
parent | fcb5d3e8b158f7ea8492aa14f79804fae18e76f9 (diff) | |
download | emacs-08e27d294468aa72cb06a50821dbade8ea03b2ce.tar.gz emacs-08e27d294468aa72cb06a50821dbade8ea03b2ce.tar.bz2 emacs-08e27d294468aa72cb06a50821dbade8ea03b2ce.zip |
Rewrite x_set_mouse_color to sync less.
We can track serial numbers of X requests and correlate error events
with the associated requests. This way we can identify errors for
specific calls without having to use XSync after every one.
* src/xfns.c (enum mouse_cursor): New type.
(struct mouse_cursor_types, struct mouse_cursor_data): New types.
(mouse_cursor_types): New array listing the Lisp variables and default
cursor appearances for each cursor type.
(x_set_mouse_color_handler): New function; checks error event serial
number against submitted requests.
(x_set_mouse_color): Updated to use the new error handler callback,
and to be more table-driven, to simplify repetitious code.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
0 files changed, 0 insertions, 0 deletions