Skip to content

Commit 7589bf4

Browse files
committed
Revert "Workaround for latest Apple regression in Tahoe"
This reverts commit d837a64. Commit 24b31d9 fixes the original problem of "ghost windows" that d837a64 was trying to solve. (I have no idea how or why it does.) One side-effect of the workaround from d837a64 is that it causes closed windows to be moved to the (0,0) before being destroyed. This means that when creating new windows, they are placed on the left-most display, instead of the display in which the previously closed window was on as you would expect. Reverting this kludge fixes this bug.
1 parent 14a429c commit 7589bf4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

glfw/cocoa_window.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,12 +1950,7 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
19501950
window->ns.view = nil;
19511951

19521952
[window->ns.object removeGLFWWindow];
1953-
// Workaround for macOS Tahoe where if the frame is not set to zero size
1954-
// even after NSWindow::close the window remains on screen as an invisible
1955-
// rectangle that intercepts mouse events and takes up space in mission
1956-
// control. Sigh.
1957-
[window->ns.object setFrame:NSMakeRect(0, 0, 0, 0) display:NO];
1958-
[window->ns.object close]; // sends a release to the NSWindow so we dont release it here
1953+
[window->ns.object close];
19591954
window->ns.object = nil;
19601955
}
19611956

0 commit comments

Comments
 (0)