diff options
| author | Po Lu | 2022-06-09 15:44:51 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-09 15:44:51 +0800 |
| commit | 0ba43e15d9c9ffb3df8aeb3a7e446d9a4d62ccff (patch) | |
| tree | e76d1ff851edd33ac4111d72e9522b58be86940d | |
| parent | 0936d6fa20894159d75eb1933325d653e4820d90 (diff) | |
| download | emacs-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.el | 3 | ||||
| -rw-r--r-- | src/xfns.c | 3 |
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 | ||
| 6885 | If FOLLOW-TOOLTIP is non-nil, any tooltip currently being displayed | 6885 | If FOLLOW-TOOLTIP is non-nil, any tooltip currently being displayed |
| 6886 | will be moved to follow the mouse pointer while the drag is in | 6886 | will be moved to follow the mouse pointer while the drag is in |
| 6887 | progress. | 6887 | progress. Note that this does not work with system tooltips (tooltips |
| 6888 | created when `use-system-tooltips' is non-nil). | ||
| 6888 | 6889 | ||
| 6889 | This function will sometimes return immediately if no mouse buttons | 6890 | This function will sometimes return immediately if no mouse buttons |
| 6890 | are currently held down. It should only be called when it is known | 6891 | are currently held down. It should only be called when it is known |