cocoa: prevent windows from being released automatically when closed. todo: research cross widgets compatibility

git-svn-id: trunk@57097 -
This commit is contained in:
dmitry 2018-01-15 03:42:41 +00:00
parent 24f8eff6e3
commit 082a0b0294

View File

@ -522,6 +522,7 @@ begin
ns := NSStringUtf8(AWinControl.Caption);
win.setTitle(ns);
ns.release;
win.setReleasedWhenClosed(False); // do not release automatically
win.setAcceptsMouseMovedEvents(True);
if AWinControl.Perform(WM_NCHITTEST, 0, 0)=HTTRANSPARENT then
win.setIgnoresMouseEvents(True);