# HG changeset patch # User Gerd Moellmann # Date 980346034 0 # Node ID 5ad77d538e083b7378bde35c44d858f20e5947d3 # Parent d78861fb271350d38841815bcbd571f13a8ae1dc (x_new_font): Don't change a tooltip's size. diff -r d78861fb2713 -r 5ad77d538e08 src/xterm.c --- 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,