From: Martin Rudalics Date: Wed, 13 May 2020 08:31:50 +0000 (+0200) Subject: In x_hide_tip reset tip_last_frame for GTK+ tooltips only (Bug#41200) X-Git-Tag: emacs-27.1-rc1~131 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a37290a6f9;p=emacs.git 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). --- 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))