From 015ee41d0fde18dfa004d63f198cdb3d6bc5e49c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 12 May 2025 13:17:46 +0530 Subject: [PATCH] ... --- glfw/cocoa_window.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index fe0265d81..3a5d70609 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -2207,8 +2207,8 @@ void _glfwPlatformShowWindow(_GLFWwindow* window) if (window->ns.layer_shell.is_active && window->ns.layer_shell.config.type == GLFW_LAYER_SHELL_BACKGROUND) { [window->ns.object orderBack:nil]; } else [window->ns.object orderFront:nil]; - debug("Previously active application pid: %d bundle identifier: %s\n", window->ns.previous_front_most_application, - window->ns.previous_front_most_application ? [NSRunningApplication runningApplicationWithProcessIdentifier:window->ns.previous_front_most_application].bundleIdentifier.UTF8String : ""); + debug("Previously active application pid: %d bundle identifier: %s\n", + window->ns.previous_front_most_application, app ? app.bundleIdentifier.UTF8String : ""); } void _glfwPlatformHideWindow(_GLFWwindow* window)