changeset 35506:5ad77d538e08

(x_new_font): Don't change a tooltip's size.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 24 Jan 2001 14:20:34 +0000
parents d78861fb2713
children 5426c6545b7f
files src/xterm.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Wed Jan 24 13:14:45 2001 +0000
+++ b/src/xterm.c	Wed Jan 24 14:20:34 2001 +0000
@@ -11449,7 +11449,12 @@
 		f->output_data.x->font->fid);
 
       frame_update_line_height (f);
-      x_set_window_size (f, 0, f->width, f->height);
+
+      /* Don't change the size of a tip frame; there's no point in
+	 doing it because it's done in Fx_show_tip, and it leads to
+	 problems because the tip frame has no widget.  */
+      if (NILP (tip_frame) || XFRAME (tip_frame) != f)
+	x_set_window_size (f, 0, f->width, f->height);
     }
   else
     /* If we are setting a new frame's font for the first time,