bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#55687: 29.0.50; make-frame chid frame crash/regression from dfa3e6f4


From: Alan Third
Subject: bug#55687: 29.0.50; make-frame chid frame crash/regression from dfa3e6f424
Date: Sun, 29 May 2022 17:08:45 +0100

On Sun, May 29, 2022 at 08:52:07AM -0400, Aaron Jensen wrote:
> Interesting. Luckily, I have never run across this other then while
> trying to repro the first bug I reported here. Alan, any ideas? Does
> this crash for you?

Works fine for me. You could maybe try something like this:

--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -7773,6 +7773,9 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f
   [self setLayerContentsPlacement:NSViewLayerContentsPlacementTopLeft];
 #endif
 
+  /* toolbar support */
+  [(EmacsWindow*)[self window] createToolbar:f];
+
   if (ns_drag_types)
     [self registerForDraggedTypes: ns_drag_types];
 
@@ -8934,9 +8937,6 @@ - (instancetype) initWithEmacsFrame: (struct frame *) f
       if ([col alphaComponent] != (EmacsCGFloat) 1.0)
         [self setOpaque:NO];
 
-      /* toolbar support */
-      [self createToolbar:f];
-
       /* macOS Sierra automatically enables tabbed windows.  We can't
          allow this to be enabled until it's available on a Free system.
          Currently it only happens by accident and is buggy anyway.  */

-- 
Alan Third





reply via email to

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