# HG changeset patch # User Richard M. Stallman # Date 732175517 0 # Node ID 75e1f1ee83ad2cb40e0ae1b7f2777600c2d0dcea # Parent b20bb441f47f7058e40e3d622f636488b9a0fc69 (SELECTION_EVENT_DISPLAY): New macro. (SELECTION_EVENT_REQUESTOR, SELECTION_EVENT_SELECTION) (SELECTION_EVENT_TARGET, SELECTION_EVENT_PROPERTY) (SELECTION_EVENT_TIME): New macros. (struct selection_input_event): New structure. diff -r b20bb441f47f -r 75e1f1ee83ad src/xterm.h --- a/src/xterm.h Mon Mar 15 06:04:31 1993 +0000 +++ b/src/xterm.h Mon Mar 15 06:05:17 1993 +0000 @@ -545,3 +545,31 @@ #define PIXEL_TO_CHAR_HEIGHT(f, height) \ (PIXEL_TO_CHAR_ROW (f, ((height) \ - (f)->display.x->internal_border_width))) + +/* If a struct input_event has a kind which is selection_request_event + or selection_clear_event, then its contents are really described + by this structure. */ + +/* For an event of kind selection_request_event, + this structure really describes the contents. */ +struct selection_input_event +{ + int kind; + Display *display; + Window requestor; + Atom selection, target, property; + Time time; +}; + +#define SELECTION_EVENT_DISPLAY(eventp) \ + (((struct selection_input_event *) (eventp))->display) +#define SELECTION_EVENT_REQUESTOR(eventp) \ + (((struct selection_input_event *) (eventp))->requestor) +#define SELECTION_EVENT_SELECTION(eventp) \ + (((struct selection_input_event *) (eventp))->selection) +#define SELECTION_EVENT_TARGET(eventp) \ + (((struct selection_input_event *) (eventp))->target) +#define SELECTION_EVENT_PROPERTY(eventp) \ + (((struct selection_input_event *) (eventp))->property) +#define SELECTION_EVENT_TIME(eventp) \ + (((struct selection_input_event *) (eventp))->time)