diff options
| author | Po Lu | 2022-03-20 16:21:45 +0800 |
|---|---|---|
| committer | Po Lu | 2022-03-20 16:21:45 +0800 |
| commit | e1178eb6405f8aa9196ecaede464707277a90afa (patch) | |
| tree | f7eac324f2d4166ad4cd637404ee064a4707dbb3 /src | |
| parent | 9b34005c32462a3e0e8a201e3b0d52a67a84d7bd (diff) | |
| download | emacs-e1178eb6405f8aa9196ecaede464707277a90afa.tar.gz emacs-e1178eb6405f8aa9196ecaede464707277a90afa.zip | |
Make DND between frames work properly
* src/xterm.c (handle_one_xevent): Don't wait for a finish event
when dropping on top of another Emacs frame.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index 98888414d53..d094224952a 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -12429,7 +12429,10 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 12429 | if (x_dnd_last_seen_window != None | 12429 | if (x_dnd_last_seen_window != None |
| 12430 | && x_dnd_last_protocol_version != -1) | 12430 | && x_dnd_last_protocol_version != -1) |
| 12431 | { | 12431 | { |
| 12432 | x_dnd_waiting_for_finish = true; | 12432 | /* Crazy hack to make dragging from one frame to |
| 12433 | another work. */ | ||
| 12434 | x_dnd_waiting_for_finish = !x_any_window_to_frame (dpyinfo, | ||
| 12435 | x_dnd_last_seen_window); | ||
| 12433 | x_dnd_pending_finish_target = x_dnd_last_seen_window; | 12436 | x_dnd_pending_finish_target = x_dnd_last_seen_window; |
| 12434 | x_dnd_waiting_for_finish_proto = x_dnd_last_protocol_version; | 12437 | x_dnd_waiting_for_finish_proto = x_dnd_last_protocol_version; |
| 12435 | 12438 | ||
| @@ -13414,7 +13417,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 13414 | if (x_dnd_last_seen_window != None | 13417 | if (x_dnd_last_seen_window != None |
| 13415 | && x_dnd_last_protocol_version != -1) | 13418 | && x_dnd_last_protocol_version != -1) |
| 13416 | { | 13419 | { |
| 13417 | x_dnd_waiting_for_finish = true; | 13420 | x_dnd_waiting_for_finish = !x_any_window_to_frame (dpyinfo, |
| 13421 | x_dnd_last_seen_window); | ||
| 13418 | x_dnd_pending_finish_target = x_dnd_last_seen_window; | 13422 | x_dnd_pending_finish_target = x_dnd_last_seen_window; |
| 13419 | x_dnd_waiting_for_finish_proto = x_dnd_last_protocol_version; | 13423 | x_dnd_waiting_for_finish_proto = x_dnd_last_protocol_version; |
| 13420 | 13424 | ||