[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/igc ac8eba98168 2/2: * src/igc.c (fix_frame): Check for null FRA
From: |
Gerd Moellmann |
Subject: |
scratch/igc ac8eba98168 2/2: * src/igc.c (fix_frame): Check for null FRAME_OUTPUT_DATA. |
Date: |
Thu, 5 Sep 2024 15:18:26 -0400 (EDT) |
branch: scratch/igc
commit ac8eba981687aef39c38e24e0ac45db1a7f9f3ab
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>
* src/igc.c (fix_frame): Check for null FRAME_OUTPUT_DATA.
---
src/igc.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/igc.c b/src/igc.c
index 9ac15464497..e4fee9a3164 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -2061,7 +2061,11 @@ fix_frame (mps_ss_t ss, struct frame *f)
if (f->terminal)
IGC_FIX12_PVEC (ss, &f->terminal);
- if (!FRAME_INITIAL_P (f))
+ if (!FRAME_INITIAL_P (f)
+#ifdef HAVE_WINDOW_SYSTEM
+ && (!FRAME_WINDOW_P (f) || FRAME_OUTPUT_DATA (f))
+#endif
+ )
{
/* This is typically stored in the display_info, e.g.
ns_display_info. Check for being NULL anyway. */