diff options
| author | YAMAMOTO Mitsuharu | 2005-12-10 01:50:12 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-12-10 01:50:12 +0000 |
| commit | 0f8dad4545f7ea8af33e8f82582f90fd0971dcff (patch) | |
| tree | ae4d3f3d29e3d2ed5cd0eb144a25add681de964a /src | |
| parent | 24d5a45ded91505770685a09073d6c60007a4258 (diff) | |
| download | emacs-0f8dad4545f7ea8af33e8f82582f90fd0971dcff.tar.gz emacs-0f8dad4545f7ea8af33e8f82582f90fd0971dcff.zip | |
(enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT event.
Diffstat (limited to 'src')
| -rw-r--r-- | src/termhooks.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index 641d21bdc06..4468f8d07c0 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -278,7 +278,7 @@ enum event_kind | |||
| 278 | by MS-Windows scroll bar controls. */ | 278 | by MS-Windows scroll bar controls. */ |
| 279 | #endif | 279 | #endif |
| 280 | SELECTION_REQUEST_EVENT, /* Another X client wants a selection from us. | 280 | SELECTION_REQUEST_EVENT, /* Another X client wants a selection from us. |
| 281 | See `struct selection_event'. */ | 281 | See `struct selection_input_event'. */ |
| 282 | SELECTION_CLEAR_EVENT, /* Another X client cleared our selection. */ | 282 | SELECTION_CLEAR_EVENT, /* Another X client cleared our selection. */ |
| 283 | BUFFER_SWITCH_EVENT, /* A process filter has switched buffers. */ | 283 | BUFFER_SWITCH_EVENT, /* A process filter has switched buffers. */ |
| 284 | DELETE_WINDOW_EVENT, /* An X client said "delete this window". */ | 284 | DELETE_WINDOW_EVENT, /* An X client said "delete this window". */ |
| @@ -326,12 +326,22 @@ enum event_kind | |||
| 326 | 326 | ||
| 327 | /* Queued from XTread_socket when session manager sends | 327 | /* Queued from XTread_socket when session manager sends |
| 328 | save yourself before shutdown. */ | 328 | save yourself before shutdown. */ |
| 329 | SAVE_SESSION_EVENT | 329 | SAVE_SESSION_EVENT, |
| 330 | |||
| 331 | #ifdef MAC_OS | ||
| 332 | /* Generated when an Apple event, a HICommand event, or a Services | ||
| 333 | menu event is received and the corresponding handler is | ||
| 334 | registered. Members `x' and `y' are for the event class and ID | ||
| 335 | symbols, respectively. Member `code' points to the Apple event | ||
| 336 | descriptor. Parameters for Non-Apple events are converted to | ||
| 337 | those in Apple events. */ | ||
| 338 | MAC_APPLE_EVENT | ||
| 339 | #endif | ||
| 330 | }; | 340 | }; |
| 331 | 341 | ||
| 332 | /* If a struct input_event has a kind which is SELECTION_REQUEST_EVENT | 342 | /* If a struct input_event has a kind which is SELECTION_REQUEST_EVENT |
| 333 | or SELECTION_CLEAR_EVENT, then its contents are really described | 343 | or SELECTION_CLEAR_EVENT, then its contents are really described |
| 334 | by `struct selection_event'; see xterm.h. */ | 344 | by `struct selection_input_event'; see xterm.h. */ |
| 335 | 345 | ||
| 336 | /* The keyboard input buffer is an array of these structures. Each one | 346 | /* The keyboard input buffer is an array of these structures. Each one |
| 337 | represents some sort of input event - a keystroke, a mouse click, or | 347 | represents some sort of input event - a keystroke, a mouse click, or |
| @@ -357,7 +367,7 @@ struct input_event | |||
| 357 | unsigned long timestamp; | 367 | unsigned long timestamp; |
| 358 | 368 | ||
| 359 | /* This is padding just to put the frame_or_window field | 369 | /* This is padding just to put the frame_or_window field |
| 360 | past the size of struct selection_event. */ | 370 | past the size of struct selection_input_event. */ |
| 361 | int *padding[2]; | 371 | int *padding[2]; |
| 362 | 372 | ||
| 363 | /* This field is copied into a vector while the event is in the queue, | 373 | /* This field is copied into a vector while the event is in the queue, |