From 4fc733a9c88a01bb2c00bdae6af67ebfb4ab54a6 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Sun, 24 Nov 2019 13:08:06 +0100 Subject: [PATCH] Comment commented out code back in This piece of code is not run when the `GLFW_COCOA_MENUBAR` init hint is set to `0`, which kitty does. This reduces the difference to GLFW upstream a little. --- glfw/cocoa_init.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/glfw/cocoa_init.m b/glfw/cocoa_init.m index 66699dba2..a6b6ea136 100644 --- a/glfw/cocoa_init.m +++ b/glfw/cocoa_init.m @@ -470,14 +470,13 @@ static GLFWapplicationwillfinishlaunchingfun finish_launching_callback = NULL; // finishLaunching below, in order to properly emulate the behavior // of NSApplicationMain - // disabled by Kovid - /* if ([[NSBundle mainBundle] pathForResource:@"MainMenu" ofType:@"nib"]) + if ([[NSBundle mainBundle] pathForResource:@"MainMenu" ofType:@"nib"]) { [[NSBundle mainBundle] loadNibNamed:@"MainMenu" owner:NSApp topLevelObjects:&_glfw.ns.nibObjects]; } - else */ + else createMenuBar(); } if (finish_launching_callback)