diff options
| author | Po Lu | 2022-07-07 02:48:19 +0000 |
|---|---|---|
| committer | Po Lu | 2022-07-07 02:48:19 +0000 |
| commit | fd016ea99724f7abedfddbb470ab96ece6ddf4ae (patch) | |
| tree | e874e42b2a69d1c22411e2a78c1fa9d2a4270284 /src/haiku_support.h | |
| parent | 8575962d46d1f1d08836bf00cb74ccd344953bcb (diff) | |
| download | emacs-fd016ea99724f7abedfddbb470ab96ece6ddf4ae.tar.gz emacs-fd016ea99724f7abedfddbb470ab96ece6ddf4ae.zip | |
Port `x-lost-selection-functions' to Haiku
* src/haiku_io.c (haiku_len): Add `CLIPBOARD_CHANGED_EVENT'.
* src/haiku_select.cc (be_update_clipboard_count): Set ownership
flags.
(be_handle_clipboard_changed_message):
(be_start_watching_selection): New functions.
* src/haiku_support.cc (class Emacs): Handle
B_CLIPBOARD_CHANGED.
* src/haiku_support.h (enum haiku_event_type): New event
`CLIPBOARD_CHANGED_EVENT'.
(struct haiku_clipboard_changed_event): New struct.
* src/haikuselect.c (haiku_handle_selection_clear)
(haiku_selection_disowned, haiku_start_watching_selections): New
functions.
(syms_of_haikuselect): New defsym and defvar.
* src/haikuselect.h: Update prototypes.
* src/haikuterm.c (haiku_read_socket): Handle selection events.
(haiku_term_init): Start watching selections.
* src/haikuterm.h: Update prototypes.
* src/keyboard.c (kbd_buffer_get_event, process_special_events)
(mark_kboards): Handle SELECTON_CLEAR_EVENTs correctly on Haiku.
Diffstat (limited to 'src/haiku_support.h')
| -rw-r--r-- | src/haiku_support.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/haiku_support.h b/src/haiku_support.h index 6260b35cbc1..d73f15560be 100644 --- a/src/haiku_support.h +++ b/src/haiku_support.h | |||
| @@ -114,8 +114,14 @@ enum haiku_event_type | |||
| 114 | DUMMY_EVENT, | 114 | DUMMY_EVENT, |
| 115 | SCREEN_CHANGED_EVENT, | 115 | SCREEN_CHANGED_EVENT, |
| 116 | MENU_BAR_LEFT, | 116 | MENU_BAR_LEFT, |
| 117 | CLIPBOARD_CHANGED_EVENT, | ||
| 117 | }; | 118 | }; |
| 118 | 119 | ||
| 120 | struct haiku_clipboard_changed_event | ||
| 121 | { | ||
| 122 | char dummy; | ||
| 123 | }; | ||
| 124 | |||
| 119 | struct haiku_screen_changed_event | 125 | struct haiku_screen_changed_event |
| 120 | { | 126 | { |
| 121 | bigtime_t when; | 127 | bigtime_t when; |