unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master 2f31dbeadf: Also show mouse DND tooltip contents during interprogram drag-and-drop
@ 2022-06-09  7:03 Eli Zaretskii
  2022-06-09  7:50 ` Po Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2022-06-09  7:03 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel

> branch: master
> commit 2f31dbeadff0abc38ded5dd072df1ec179c49945
> Author: Po Lu <luangruo@yahoo.com>
> Commit: Po Lu <luangruo@yahoo.com>
> 
>     Also show mouse DND tooltip contents during interprogram drag-and-drop
>     
>     * doc/lispref/frames.texi (Drag and Drop): Document new
>     parameter to `x-begin-drag'.
>     * lisp/mouse.el (mouse-drag-and-drop-region): Don't hide tooltip
>     when initiating interprogram drag-and-drop.
>     * lisp/term/haiku-win.el (x-begin-drag):
>     * lisp/term/ns-win.el (x-begin-drag): Add stubs for new
>     parameter.
>     * src/xfns.c (Fx_begin_drag): New parameter `follow-tooltip'.
>     (Fx_show_tip, syms_of_xfns): Add records of the last dx and dy
>     given to `x-show-tip'.
>     * src/xterm.c (x_clear_dnd_monitors): New function.
>     (x_dnd_begin_drag_and_drop): Save monitor attributes list if
>     appropriate.
>     (x_dnd_compute_tip_xy, x_dnd_update_tooltip_position): New
>     function.
>     (x_dnd_update_state, handle_one_xevent): Update tooltip position
>     during DND mouse movement.
>     (syms_of_xterm): Update staticpros.
>     * src/xterm.h: Update prototypes.

Instead of recording tooltip's coordinates in static C variables
(which then could cause potential problems with stale values),
wouldn't it be better to just move the tip frame from Lisp when the
mouse moves?



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-09 10:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09  7:03 master 2f31dbeadf: Also show mouse DND tooltip contents during interprogram drag-and-drop Eli Zaretskii
2022-06-09  7:50 ` Po Lu
2022-06-09  9:18   ` Eli Zaretskii
2022-06-09 10:07     ` Po Lu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).