diff options
| author | Po Lu | 2022-02-13 08:39:24 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-13 08:40:36 +0800 |
| commit | ad2d50d762b4399b5b6284b0903b5d92fb3fe64f (patch) | |
| tree | 142f431e04463da518565a143966fc97660ab558 /src | |
| parent | 8e0b043f49a014d1e3f45bd82917c31aa4181951 (diff) | |
| download | emacs-ad2d50d762b4399b5b6284b0903b5d92fb3fe64f.tar.gz emacs-ad2d50d762b4399b5b6284b0903b5d92fb3fe64f.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index e107c65aa2d..ee026529eba 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -451,7 +451,7 @@ x_update_opaque_region (struct frame *f, XEvent *configure) | |||
| 451 | : FRAME_PIXEL_HEIGHT (f))}; | 451 | : FRAME_PIXEL_HEIGHT (f))}; |
| 452 | #endif | 452 | #endif |
| 453 | 453 | ||
| 454 | if (!(f && FRAME_DISPLAY_INFO (f)->alpha_bits)) | 454 | if (!FRAME_DISPLAY_INFO (f)->alpha_bits) |
| 455 | return; | 455 | return; |
| 456 | 456 | ||
| 457 | block_input (); | 457 | block_input (); |
| @@ -10372,7 +10372,8 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 10372 | x_cr_update_surface_desired_size (any, | 10372 | x_cr_update_surface_desired_size (any, |
| 10373 | configureEvent.xconfigure.width, | 10373 | configureEvent.xconfigure.width, |
| 10374 | configureEvent.xconfigure.height); | 10374 | configureEvent.xconfigure.height); |
| 10375 | x_update_opaque_region (f, &configureEvent); | 10375 | if (f || (any && configureEvent.xconfigure.window == FRAME_X_WINDOW (any))) |
| 10376 | x_update_opaque_region (f ? f : any, &configureEvent); | ||
| 10376 | #endif | 10377 | #endif |
| 10377 | #ifdef USE_GTK | 10378 | #ifdef USE_GTK |
| 10378 | if (!f | 10379 | if (!f |