]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix last change in xterm.c
authorPo Lu <luangruo@yahoo.com>
Sun, 13 Feb 2022 00:39:24 +0000 (08:39 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 13 Feb 2022 00:40:36 +0000 (08:40 +0800)
* 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.

src/xterm.c

index e107c65aa2d5846bbde124fc293fc88ed5674cb9..ee026529ebaed2025cf1a9fc713bb9482ec9f9e2 100644 (file)
@@ -451,7 +451,7 @@ x_update_opaque_region (struct frame *f, XEvent *configure)
                                    : FRAME_PIXEL_HEIGHT (f))};
 #endif
 
-  if (!(f && FRAME_DISPLAY_INFO (f)->alpha_bits))
+  if (!FRAME_DISPLAY_INFO (f)->alpha_bits)
     return;
 
   block_input ();
@@ -10372,7 +10372,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
        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