diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.h | 28 |
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. */ | ||
| 555 | struct 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) | ||