summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2020-05-13 10:31:50 +0200
committerMartin Rudalics <rudalics@gmx.at>2020-05-13 10:31:50 +0200
commita37290a6f965d0e0c13a734e6be973e1bd43bb7f (patch)
treef1f04827c52c3e07afcf147507cb74ccd9fac145
parent3d819956923ecbbc79f5b3ac154109a7ec7150b7 (diff)
downloademacs-a37290a6f965d0e0c13a734e6be973e1bd43bb7f.tar.gz
emacs-a37290a6f965d0e0c13a734e6be973e1bd43bb7f.tar.bz2
emacs-a37290a6f965d0e0c13a734e6be973e1bd43bb7f.zip
In x_hide_tip reset tip_last_frame for GTK+ tooltips only (Bug#41200)
* src/xfns.c (x_hide_tip): Reset tip_last_frame only when using GTK+ system tooltips (Bug#41200).
-rw-r--r--src/xfns.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xfns.c b/src/xfns.c
index a5431aa8909..b89fac1cdac 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -6746,9 +6746,11 @@ x_hide_tip (bool delete)
}
}
- /* Reset tip_last_frame, it will be reassigned when showing the
- next GTK+ system tooltip. */
- tip_last_frame = Qnil;
+ /* When using GTK+ system tooltips (compare Bug#41200) reset
+ tip_last_frame. It will be reassigned when showing the next
+ GTK+ system tooltip. */
+ if (x_gtk_use_system_tooltips)
+ tip_last_frame = Qnil;
/* Now look whether there's an Emacs tip around. */
if (FRAMEP (tip_frame))