]> git.eshelyaron.com Git - emacs.git/commit
Prefer 'x_display_info *' to 'Display *' in X selection code.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 18 Jul 2014 11:04:37 +0000 (15:04 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 18 Jul 2014 11:04:37 +0000 (15:04 +0400)
commit1a5db9eb9ebde75aa94e52c8eab8d07868759444
tree9eb145f20f68fcb3d3afeaad737cd05ea5609c74
parent32a608307c53bd8bb1e29015bc36438f0ff0c572
Prefer 'x_display_info *' to 'Display *' in X selection code.
This helps to avoid unneeded calls to x_display_info_for_display.
* xterm.h (struct selection_input_event): Record 'x_display_info *'
instead of 'Display *'.
(SELECTION_EVENT_DPYINFO): New macro.
(SELECTION_EVENT_DISPLAY): Now inline function to prohibit using
it as an lvalue.  Mention this in comment.
* xterm.c (handle_one_xevent): Use SELECTION_EVENT_DPYINFO.
* xselect.c (x_get_window_property_as_lisp_data, x_atom_to_symbol)
(selection_data_to_lisp_data, receive_incremental_selection):
Convert to use 'x_display_info *'.  Adjust users where appropriate.
(lisp_data_to_selection_data): Likewise.  Also pass 'struct
selection data *' as last arg to not return values in args.
(unexpect_property_change): Use common removal technique.
src/ChangeLog
src/xselect.c
src/xterm.c
src/xterm.h