summaryrefslogtreecommitdiff
path: root/src/xfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index ce867c1619c..076cd97875a 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -8681,7 +8681,8 @@ Text larger than the specified size is clipped. */)
if (!NILP (tip_frame) && FRAME_LIVE_P (XFRAME (tip_frame)))
{
if (FRAME_VISIBLE_P (XFRAME (tip_frame))
- && BASE_EQ (frame, tip_last_frame)
+ && (FRAME_X_DISPLAY (XFRAME (frame))
+ == FRAME_X_DISPLAY (XFRAME (tip_last_frame)))
&& !NILP (Fequal_including_properties (tip_last_string, string))
&& !NILP (Fequal (tip_last_parms, parms)))
{