]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xterm.c (x_update_opaque_region): Avoid crash at startup in Lucid build
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 12 Feb 2022 22:47:21 +0000 (17:47 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 12 Feb 2022 22:47:21 +0000 (17:47 -0500)
src/xterm.c

index 7195311737f1fc925d4b87493a8decf6dcff00ed..e107c65aa2d5846bbde124fc293fc88ed5674cb9 100644 (file)
@@ -451,7 +451,7 @@ x_update_opaque_region (struct frame *f, XEvent *configure)
                                    : FRAME_PIXEL_HEIGHT (f))};
 #endif
 
-  if (!FRAME_DISPLAY_INFO (f)->alpha_bits)
+  if (!(f && FRAME_DISPLAY_INFO (f)->alpha_bits))
     return;
 
   block_input ();