Subject: Re: bug#69762: X11 versions of Emacs 29 on sparc fail at startup

From: Po Lu <[email-masked]>
Date: Sat, 16 Mar 2024 08:21:13 +0800

Ali Bahrami <[email-masked]> writes:

> Standing by for the next iteration. Thank you!
>
> - Ali

How about this?  Thanks.

diff --git a/src/xterm.c b/src/xterm.c
index c8a43785564..c4cd9386270 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7297,11 +7297,11 @@ x_sync_init_fences (struct frame *f)
 			/* The drawable given below is only used to
 			   determine the screen on which the fence is
 			   created.  */
-			FRAME_X_WINDOW (f),
+			dpyinfo->root_window,
 			False);
   output->sync_fences[1]
     = XSyncCreateFence (FRAME_X_DISPLAY (f),
-			FRAME_X_WINDOW (f),
+		        dpyinfo->root_window,
 			False);
 
   XChangeProperty (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),