aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2022-06-09 15:44:51 +0800
committerPo Lu2022-06-09 15:44:51 +0800
commit0ba43e15d9c9ffb3df8aeb3a7e446d9a4d62ccff (patch)
treee76d1ff851edd33ac4111d72e9522b58be86940d
parent0936d6fa20894159d75eb1933325d653e4820d90 (diff)
downloademacs-0ba43e15d9c9ffb3df8aeb3a7e446d9a4d62ccff.tar.gz
emacs-0ba43e15d9c9ffb3df8aeb3a7e446d9a4d62ccff.zip
Note caveats of `follow-tooltip' with system tooltips
* lisp/mouse.el (mouse-drag-and-drop-region): Turn off system tooltips inside. * src/xfns.c (Fx_begin_drag): Say that follow-tooltip doesn't work with system tooltips.
-rw-r--r--lisp/mouse.el3
-rw-r--r--src/xfns.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 6a2b1738f71..11014fa1c5f 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -3103,6 +3103,9 @@ is copied instead of being cut."
3103 ;; tooltip. 3103 ;; tooltip.
3104 (mouse-fine-grained-tracking t) 3104 (mouse-fine-grained-tracking t)
3105 (was-tooltip-mode tooltip-mode) 3105 (was-tooltip-mode tooltip-mode)
3106 ;; System tooltips tend to flicker and in general work
3107 ;; incorrectly.
3108 (use-system-tooltips nil)
3106 ;; Whether or not some text was ``cut'' from Emacs to another 3109 ;; Whether or not some text was ``cut'' from Emacs to another
3107 ;; program and the cleaanup code should not try modifying the 3110 ;; program and the cleaanup code should not try modifying the
3108 ;; region. 3111 ;; region.
diff --git a/src/xfns.c b/src/xfns.c
index 15e96183e3b..43d4d27372e 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -6884,7 +6884,8 @@ mouse buttons are released on top of FRAME.
6884 6884
6885If FOLLOW-TOOLTIP is non-nil, any tooltip currently being displayed 6885If FOLLOW-TOOLTIP is non-nil, any tooltip currently being displayed
6886will be moved to follow the mouse pointer while the drag is in 6886will be moved to follow the mouse pointer while the drag is in
6887progress. 6887progress. Note that this does not work with system tooltips (tooltips
6888created when `use-system-tooltips' is non-nil).
6888 6889
6889This function will sometimes return immediately if no mouse buttons 6890This function will sometimes return immediately if no mouse buttons
6890are currently held down. It should only be called when it is known 6891are currently held down. It should only be called when it is known