diff options
author | Po Lu <luangruo@yahoo.com> | 2022-06-30 16:41:58 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-06-30 16:41:58 +0800 |
commit | ebd980bc7e45acaa65adae91400903384fd6dfb2 (patch) | |
tree | 3ed1a579f0e0d77995bb7c62f4abc0594832628f /doc/lispref/frames.texi | |
parent | 25887d634f624369559ab072beea0d1e2d6886cd (diff) | |
download | emacs-ebd980bc7e45acaa65adae91400903384fd6dfb2.tar.gz |
Disable unrelated drag-and-drop protocols during XDS drop
* doc/lispref/frames.texi (Drag and Drop): Document variables
used to control drag-and-drop protocols.
* lisp/x-dnd.el (x-dnd-do-direct-save): Disable irrelevant DND
protocols.
* src/xterm.c (x_dnd_get_target_window_1):
(x_dnd_get_target_window):
(handle_one_xevent): Respect new variable.
(syms_of_xterm): New variable `x-dnd-disable-motif-protocol'.
Diffstat (limited to 'doc/lispref/frames.texi')
-rw-r--r-- | doc/lispref/frames.texi | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index 860258a9648..720753edad6 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi @@ -4258,6 +4258,28 @@ chosen by the target. For example, callers should delete the buffer text that was dragged if this function returns @code{XdndActionMove}. @end defun +@cindex drag and drop protocols, X + + On X Windows, several different drag-and-drop protocols are +supported by @code{x-begin-drag}. When dragging content that is known +to not be supported by a specific drag-and-drop protocol, it might be +desirable to turn that protocol off, by changing the values of the +following variables: + +@defvar x-dnd-disable-motif-protocol +When this is non-@code{nil}, the Motif drag and drop protocols are +disabled, and dropping onto programs that only understand them will +not work. +@end defvar + +@defvar x-dnd-use-offix-drop +When this is @code{nil}, the OffiX (old KDE) drag and drop protocol is +disabled. When this is the symbol @code{files}, the OffiX protocol +will only be used if @code{"FILE_NAME"} is one of the targets given to +@code{x-begin-drag}. Any other value means to use the OffiX protocol +to drop all supported content. +@end defvar + @node Color Names @section Color Names |