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

From: Po Lu <[email-masked]>
Date: Thu, 14 Mar 2024 14:16:12 +0800

Ali Bahrami <[email-masked]> writes:

> On 3/13/24 6:17 PM, Po Lu wrote:
>> Please run Emacs under gdb (or some other suitable debugger, e.g. dbx)
>> with the command-line options:
>>    -q -xrm 'Emacs.synchronous: True'
>> exactly as written above, break on xterm.c:x_error_quitter, and
>> reply
>> with the backtrace generated after this breakpoint is hit.
>
> The gdb output follows. Thanks.

Thanks.  Does this resolve the problem?

diff --git a/src/xterm.c b/src/xterm.c
index c8a43785564..55aba5b8604 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),
+			FRAME_OUTER_WINDOW (f),
 			False);
   output->sync_fences[1]
     = XSyncCreateFence (FRAME_X_DISPLAY (f),
-			FRAME_X_WINDOW (f),
+			FRAME_OUTER_WINDOW (f),
 			False);
 
   XChangeProperty (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f),