diff --git a/src/frame.c b/src/frame.c index 7f4bf274ad9..af95cb54701 100644 --- a/src/frame.c +++ b/src/frame.c @@ -734,6 +734,7 @@ adjust_frame_size (struct frame *f, int new_text_width, int new_text_height, && (new_native_height != old_native_height || inhibit == 0 || inhibit == 2)))) { +#ifndef USE_GTK if (inhibit == 2 #ifdef USE_MOTIF && !EQ (parameter, Qmenu_bar_lines) @@ -754,7 +755,7 @@ adjust_frame_size (struct frame *f, int new_text_width, int new_text_height, if (f->new_height >= 0) new_native_height = f->new_height; } - +#endif if (CONSP (frame_size_history)) frame_size_history_adjust (f, inhibit, parameter, old_text_width, old_text_height, @@ -6769,7 +6770,7 @@ focus (where a frame immediately loses focus when it's left by the mouse The function `frame--size-history' displays the value of this variable in a more readable form. */); - frame_size_history = Qnil; + frame_size_history = Fcons (make_fixnum (100), Qnil); DEFVAR_BOOL ("tooltip-reuse-hidden-frame", tooltip_reuse_hidden_frame, doc: /* Non-nil means reuse hidden tooltip frames. diff --git a/src/gtkutil.c b/src/gtkutil.c index d57627f152f..2be84ae60b9 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -1327,10 +1327,17 @@ xg_frame_set_char_size (struct frame *f, int width, int height) if (FRAME_VISIBLE_P (f) && !was_visible) { if (CONSP (frame_size_history)) - frame_size_history_extra - (f, build_string ("xg_frame_set_char_size, visible"), - FRAME_PIXEL_WIDTH (f), FRAME_PIXEL_HEIGHT (f), width, height, - f->new_width, f->new_height); + { + frame_size_history_extra + (f, build_string ("xg_frame_set_char_size, visible"), + FRAME_PIXEL_WIDTH (f), FRAME_PIXEL_HEIGHT (f), width, height, + f->new_width, f->new_height); + + if (gwidth > 0 || gheight > 0) + frame_size_history_extra + (f, build_string (" +values"), gwidth, gheight, + outer_width, outer_height, -1, -1); + } /* Must call this to flush out events */ (void)gtk_events_pending ();