From: Po Lu Date: Sun, 26 Dec 2021 01:20:51 +0000 (+0800) Subject: Don't clear internal border if frame isn't realized X-Git-Tag: emacs-29.0.90~3451 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ab3d5b8b32821ea40ec93aa7804d4c75ae87c3db;p=emacs.git Don't clear internal border if frame isn't realized * src/pgtkterm.c (pgtk_clear_under_internal_border): Don't clear border if frame isn't realized. (bug#52705) --- diff --git a/src/pgtkterm.c b/src/pgtkterm.c index 74a71b984c5..c6b56b271e8 100644 --- a/src/pgtkterm.c +++ b/src/pgtkterm.c @@ -4832,7 +4832,8 @@ pgtk_fill_rectangle (struct frame *f, unsigned long color, int x, int y, void pgtk_clear_under_internal_border (struct frame *f) { - if (FRAME_INTERNAL_BORDER_WIDTH (f) > 0) + if (FRAME_INTERNAL_BORDER_WIDTH (f) > 0 + && gtk_widget_get_realized (FRAME_GTK_OUTER_WIDGET (f))) { int border = FRAME_INTERNAL_BORDER_WIDTH (f); int width = FRAME_PIXEL_WIDTH (f);