aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-03-15 06:05:17 +0000
committerRichard M. Stallman1993-03-15 06:05:17 +0000
commitc352056c41c52c5a048dafa652596841badaf3fe (patch)
tree3371ef673cbc51c3f6ebdf795518519dcf7b4d8a /src
parentd56a553a20129ebd865a9d2c76c8480cfbcccca1 (diff)
downloademacs-c352056c41c52c5a048dafa652596841badaf3fe.tar.gz
emacs-c352056c41c52c5a048dafa652596841badaf3fe.zip
(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.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index b0744a0cfe2..6fce7eb2a55 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -545,3 +545,31 @@ struct scroll_bar {
545#define PIXEL_TO_CHAR_HEIGHT(f, height) \ 545#define PIXEL_TO_CHAR_HEIGHT(f, height) \
546 (PIXEL_TO_CHAR_ROW (f, ((height) \ 546 (PIXEL_TO_CHAR_ROW (f, ((height) \
547 - (f)->display.x->internal_border_width))) 547 - (f)->display.x->internal_border_width)))
548
549/* If a struct input_event has a kind which is selection_request_event
550 or selection_clear_event, then its contents are really described
551 by this structure. */
552
553/* For an event of kind selection_request_event,
554 this structure really describes the contents. */
555struct selection_input_event
556{
557 int kind;
558 Display *display;
559 Window requestor;
560 Atom selection, target, property;
561 Time time;
562};
563
564#define SELECTION_EVENT_DISPLAY(eventp) \
565 (((struct selection_input_event *) (eventp))->display)
566#define SELECTION_EVENT_REQUESTOR(eventp) \
567 (((struct selection_input_event *) (eventp))->requestor)
568#define SELECTION_EVENT_SELECTION(eventp) \
569 (((struct selection_input_event *) (eventp))->selection)
570#define SELECTION_EVENT_TARGET(eventp) \
571 (((struct selection_input_event *) (eventp))->target)
572#define SELECTION_EVENT_PROPERTY(eventp) \
573 (((struct selection_input_event *) (eventp))->property)
574#define SELECTION_EVENT_TIME(eventp) \
575 (((struct selection_input_event *) (eventp))->time)