((posn-area (event-start event)))
((assoc "refs" string)
(with-selected-window window
- (raise-frame)
(dolist (filename (cddr (assoc "refs" string)))
(dnd-handle-one-url window 'private
(concat "file:" filename)))))
(dnd-handle-one-url window 'private bf)))))
((assoc "text/plain" string)
(with-selected-window window
- (raise-frame)
(dolist (text (cddr (assoc "text/plain" string)))
(unless mouse-yank-at-point
(goto-char (posn-point (event-start event))))
{
haiku_dnd_frame = NULL;
BMessage_delete (message);
-
- if (haiku_dnd_follow_tooltip)
- Fx_hide_tip ();
}
DEFUN ("haiku-drag-message", Fhaiku_drag_message, Shaiku_drag_message,
process_pending_signals,
haiku_should_quit_drag);
- FRAME_DISPLAY_INFO (f)->grabbed = 0;
-
+ /* Don't clear the mouse grab if the user decided to quit instead
+ of the drop finishing. */
if (rc)
quit ();
+ /* Now dismiss the tooltip, since the drop presumably succeeded. */
+ if (!NILP (follow_tooltip))
+ Fx_hide_tip ();
+
+ FRAME_DISPLAY_INFO (f)->grabbed = 0;
+
return unbind_to (idx, Qnil);
}