* src/xterm.c (x_update_opaque_region): Remove check that f is
non-NULL.
(handle_one_xevent): If f is NULL and the configure event is for
any's edit widget, use that instead.
: FRAME_PIXEL_HEIGHT (f))};
#endif
- if (!(f && FRAME_DISPLAY_INFO (f)->alpha_bits))
+ if (!FRAME_DISPLAY_INFO (f)->alpha_bits)
return;
block_input ();
x_cr_update_surface_desired_size (any,
configureEvent.xconfigure.width,
configureEvent.xconfigure.height);
- x_update_opaque_region (f, &configureEvent);
+ if (f || (any && configureEvent.xconfigure.window == FRAME_X_WINDOW (any)))
+ x_update_opaque_region (f ? f : any, &configureEvent);
#endif
#ifdef USE_GTK
if (!f