diff options
| author | YAMAMOTO Mitsuharu | 2020-01-07 12:42:19 +0900 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2020-01-07 12:42:19 +0900 |
| commit | c01f55f126fd057c7fe559de53d7edb81f92c832 (patch) | |
| tree | 217a846d50d7ae9ea5d9a9a4ee0f020c0ad804e1 | |
| parent | 075f21c0e3f4893c07c93298368ef8ac7c9eb012 (diff) | |
| download | emacs-c01f55f126fd057c7fe559de53d7edb81f92c832.tar.gz emacs-c01f55f126fd057c7fe559de53d7edb81f92c832.zip | |
Fix rendering bug due to unsynchronized cairo surface size (Bug#38497)
* src/xterm.c (handle_one_xevent) <ConfigureNotify> [USE_CAIRO && !USE_GTK]:
Call x_cr_update_surface_desired_size for a related frame as a fallback.
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index ada3cec1636..21d99f0c7bb 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -8934,6 +8934,10 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 8934 | if (f) | 8934 | if (f) |
| 8935 | x_cr_update_surface_desired_size (f, configureEvent.xconfigure.width, | 8935 | x_cr_update_surface_desired_size (f, configureEvent.xconfigure.width, |
| 8936 | configureEvent.xconfigure.height); | 8936 | configureEvent.xconfigure.height); |
| 8937 | else if (any && configureEvent.xconfigure.window == FRAME_X_WINDOW (any)) | ||
| 8938 | x_cr_update_surface_desired_size (any, | ||
| 8939 | configureEvent.xconfigure.width, | ||
| 8940 | configureEvent.xconfigure.height); | ||
| 8937 | #endif | 8941 | #endif |
| 8938 | #ifdef USE_GTK | 8942 | #ifdef USE_GTK |
| 8939 | if (!f | 8943 | if (!f |