mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Workaround for latest Apple regression in Tahoe
Now NSWindow::close no longer actually closes the window. Sigh. Have to also set its frame to zero size, otherwise an invisible rect remains that intercepts mouse events and takes up space in Mission Control. Life is too short for this shit. Fixes #8952
This commit is contained in:
@@ -1927,7 +1927,12 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
|
||||
window->ns.view = nil;
|
||||
|
||||
[window->ns.object removeGLFWWindow];
|
||||
[window->ns.object close];
|
||||
// Workaround for macOS Tahoe where if the frame is not set to zero size
|
||||
// even after NSWindow::close the window remains on screen as an invisible
|
||||
// rectangle that intercepts mouse events and takes up space in mission
|
||||
// control. Sigh.
|
||||
[window->ns.object setFrame:NSMakeRect(0, 0, 0, 0) display:NO];
|
||||
[window->ns.object close]; // sends a release to the NSWindow so we dont release it here
|
||||
window->ns.object = nil;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user