* xfns.c (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.

This commit is contained in:
Jan D 2010-08-11 20:47:34 +02:00
parent 3a46642b08
commit 94dff98f39
2 changed files with 2 additions and 1 deletions

View file

@ -2,6 +2,7 @@
* xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
first.
(Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
* gtkutil.h (xg_check_special_colors): Declare.

View file

@ -5237,7 +5237,7 @@ Value is t if tooltip was open, nil otherwise. */)
/* When using system tooltip, tip_frame is the Emacs frame on which
the tip is shown. */
f = XFRAME (frame);
if (xg_hide_tooltip (f))
if (FRAME_LIVE_P (f) && xg_hide_tooltip (f))
frame = Qnil;
#endif