Subject: bug#23925: 25.0.95; display broken when maximizing frame

From: YAMAMOTO Mitsuharu <[email-masked]>
Date: Wed, 19 Jun 2019 10:38:16 +0900

On Wed, 19 Jun 2019 10:22:40 +0900,
Dmitry Gutov wrote:
> 
> On 19.06.2019 3:26, YAMAMOTO Mitsuharu wrote:
> > Could you try adding (inhibit-double-buffering . t) to
> > initial-frame-alist above and see if the problem still happens?
> 
> Tried it now. The problem went away.

Thanks for trying.  Could you also try the following patch (without
inhibiting double buffering)?

				     YAMAMOTO Mitsuharu
				[email-masked]

diff --git a/src/xterm.c b/src/xterm.c
index bc56e99513d..9bb0b83916c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -8834,7 +8834,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
       if (f && FRAME_X_DOUBLE_BUFFERED_P (f))
         font_drop_xrender_surfaces (f);
       unblock_input ();
-#ifdef USE_CAIRO
+#if defined USE_CAIRO && !defined USE_GTK
       if (f)
 	x_cr_update_surface_desired_size (f, configureEvent.xconfigure.width,
 					  configureEvent.xconfigure.height);