diff options
| author | Po Lu | 2022-03-25 13:41:30 +0000 |
|---|---|---|
| committer | Po Lu | 2022-03-25 13:41:30 +0000 |
| commit | 4dfd42014b50aadd82b425747fe65fa97df28caa (patch) | |
| tree | 083cd4a906024025b336b2c2c53323a7e764de67 /src/haiku_support.cc | |
| parent | 8ba0f190642d20e8f9caa7472c12674c7ba65a69 (diff) | |
| download | emacs-4dfd42014b50aadd82b425747fe65fa97df28caa.tar.gz emacs-4dfd42014b50aadd82b425747fe65fa97df28caa.zip | |
Implement new drag and drop parameter on Haiku
* lisp/term/haiku-win.el (x-begin-drag): Implement
`allow-current-frame'.
* src/haiku_support.cc (be_drag_message): New argument
`allow_same_view'.
* src/haiku_support.h: Update prototypes.
* src/haikuselect.c (Fhaiku_drag_message): New parameter
`allow-same-frame'.
Diffstat (limited to 'src/haiku_support.cc')
| -rw-r--r-- | src/haiku_support.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc index b58420fcb99..a1616258bc3 100644 --- a/src/haiku_support.cc +++ b/src/haiku_support.cc | |||
| @@ -4068,7 +4068,7 @@ be_drag_message_thread_entry (void *thread_data) | |||
| 4068 | } | 4068 | } |
| 4069 | 4069 | ||
| 4070 | bool | 4070 | bool |
| 4071 | be_drag_message (void *view, void *message, | 4071 | be_drag_message (void *view, void *message, bool allow_same_view, |
| 4072 | void (*block_input_function) (void), | 4072 | void (*block_input_function) (void), |
| 4073 | void (*unblock_input_function) (void), | 4073 | void (*unblock_input_function) (void), |
| 4074 | void (*process_pending_signals_function) (void), | 4074 | void (*process_pending_signals_function) (void), |
| @@ -4083,7 +4083,10 @@ be_drag_message (void *view, void *message, | |||
| 4083 | ssize_t stat; | 4083 | ssize_t stat; |
| 4084 | 4084 | ||
| 4085 | block_input_function (); | 4085 | block_input_function (); |
| 4086 | msg->AddInt32 ("emacs:window_id", window->window_id); | 4086 | |
| 4087 | if (!allow_same_view) | ||
| 4088 | msg->AddInt32 ("emacs:window_id", window->window_id); | ||
| 4089 | |||
| 4087 | if (!vw->LockLooper ()) | 4090 | if (!vw->LockLooper ()) |
| 4088 | gui_abort ("Failed to lock view looper for drag"); | 4091 | gui_abort ("Failed to lock view looper for drag"); |
| 4089 | 4092 | ||