Create macOS menu bar where GLFW creates it

GLFW creates the menu bar in the applicationWillFinishLaunching method, while kitty creates it in `create_os_window()`. This patch changes the behaviour to match GLFW.
In practice, without this change, there can be a short time where the menu bar is not fully populated.
This commit is contained in:
Luflosi
2019-11-23 19:18:38 +01:00
parent bd75157428
commit f9fd39b8c1
7 changed files with 21 additions and 7 deletions

2
kitty/glfw-wrapper.c generated
View File

@@ -389,6 +389,8 @@ load_glfw(const char* path) {
*(void **) (&glfwSetApplicationShouldHandleReopen_impl) = dlsym(handle, "glfwSetApplicationShouldHandleReopen");
*(void **) (&glfwSetApplicationWillFinishLaunching_impl) = dlsym(handle, "glfwSetApplicationWillFinishLaunching");
*(void **) (&glfwGetCocoaKeyEquivalent_impl) = dlsym(handle, "glfwGetCocoaKeyEquivalent");
*(void **) (&glfwCocoaRequestRenderFrame_impl) = dlsym(handle, "glfwCocoaRequestRenderFrame");