Cocoa: set Window Level to normal in DestroyHandle

avoid still appearing on the screen before the top window is actually destroyed
This commit is contained in:
rich2014 2023-08-27 00:01:49 +08:00
parent b65ca17223
commit 762c5a45f0

View File

@ -852,6 +852,7 @@ begin
// it should be removed from "parentWindow"
if Assigned(win.parentWindow) then
win.parentWindow.removeChildWindow(win);
win.setLevel(NSNormalWindowLevel);
win.close;
win.setContentView(nil);
cb := win.lclGetCallback();