From: Yuuki Harano Date: Fri, 18 Jun 2021 13:59:36 +0000 (+0900) Subject: Revert "Revert "* src/pgtkfns.c: Do not show an empty frame prematurely"" X-Git-Tag: emacs-29.0.90~3684 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3dbd3a87a1a81b7c70a1131563d9e5aee1d974d3;p=emacs.git Revert "Revert "* src/pgtkfns.c: Do not show an empty frame prematurely"" This reverts commit b0d688673b0be774c3735eef304f69568bd59bcf. The commit 83c35b8 causes the empty frame bug, so I reverted. Now, I debugged so re-apply the commit. --- diff --git a/src/pgtkfns.c b/src/pgtkfns.c index ceff279ad02..0f9f2e4c83f 100644 --- a/src/pgtkfns.c +++ b/src/pgtkfns.c @@ -1693,8 +1693,13 @@ This function is an internal primitive--use `make-frame' instead. */ ) unblock_input (); } - if (FRAME_GTK_OUTER_WIDGET (f)) - gtk_widget_show_all (FRAME_GTK_OUTER_WIDGET (f)); + if (FRAME_GTK_OUTER_WIDGET (f)) { + GList *w = gtk_container_get_children(GTK_CONTAINER(FRAME_GTK_OUTER_WIDGET (f))); + for (; w != NULL; w = w->next) + { + gtk_widget_show_all (GTK_WIDGET(w->data)); + } + } gui_default_parameter (f, parms, Qno_focus_on_map, Qnil, NULL, NULL, RES_TYPE_BOOLEAN);