[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master ad2d50d762: Fix last change in xterm.c
From: |
Po Lu |
Subject: |
master ad2d50d762: Fix last change in xterm.c |
Date: |
Sat, 12 Feb 2022 19:41:13 -0500 (EST) |
branch: master
commit ad2d50d762b4399b5b6284b0903b5d92fb3fe64f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Fix last change in xterm.c
* 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 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/xterm.c b/src/xterm.c
index e107c65aa2..ee026529eb 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master ad2d50d762: Fix last change in xterm.c,
Po Lu <=