mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Revert "Workaround for latest Apple regression in Tahoe"
This reverts commitd837a64e36. Commit24b31d96e9fixes the original problem of "ghost windows" thatd837a64was trying to solve. (I have no idea how or why it does.) One side-effect of the workaround fromd837a64is 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.
This commit is contained in:
parent
14a429c5bd
commit
7589bf4b11
1 changed files with 1 additions and 6 deletions
|
|
@ -1950,12 +1950,7 @@ void _glfwPlatformDestroyWindow(_GLFWwindow* window)
|
|||
window->ns.view = nil;
|
||||
|
||||
[window->ns.object removeGLFWWindow];
|
||||
// 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 close];
|
||||
window->ns.object = nil;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue