emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-27 c01f55f 2/2: Fix rendering bug due to unsynchronized cairo surf


From: YAMAMOTO Mitsuharu
Subject: emacs-27 c01f55f 2/2: Fix rendering bug due to unsynchronized cairo surface size (Bug#38497)
Date: Mon, 6 Jan 2020 22:45:38 -0500 (EST)

branch: emacs-27
commit c01f55f126fd057c7fe559de53d7edb81f92c832
Author: YAMAMOTO Mitsuharu <address@hidden>
Commit: YAMAMOTO Mitsuharu <address@hidden>

    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.
---
 src/xterm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index ada3cec..21d99f0 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -8934,6 +8934,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
       if (f)
        x_cr_update_surface_desired_size (f, configureEvent.xconfigure.width,
                                          configureEvent.xconfigure.height);
+      else if (any && configureEvent.xconfigure.window == FRAME_X_WINDOW (any))
+       x_cr_update_surface_desired_size (any,
+                                         configureEvent.xconfigure.width,
+                                         configureEvent.xconfigure.height);
 #endif
 #ifdef USE_GTK
       if (!f



reply via email to

[Prev in Thread] Current Thread [Next in Thread]