]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't clear internal border if frame isn't realized
authorPo Lu <luangruo@yahoo.com>
Sun, 26 Dec 2021 01:20:51 +0000 (09:20 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 26 Dec 2021 01:20:51 +0000 (09:20 +0800)
* src/pgtkterm.c (pgtk_clear_under_internal_border): Don't clear
border if frame isn't realized.  (bug#52705)

src/pgtkterm.c

index 74a71b984c5e928da0e29ccf780af5b24f392d51..c6b56b271e81cab22870b666bb7f3bb6a2a58b52 100644 (file)
@@ -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);