diff src/xterm.h @ 2196:75e1f1ee83ad

(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.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Mar 1993 06:05:17 +0000
parents 73ce9dd21093
children 10b84f28f6f2
line wrap: on
line diff
--- 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)