mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 15:56:08 +02:00
cocoa: prevent windows from being released automatically when closed. todo: research cross widgets compatibility
git-svn-id: trunk@57097 -
This commit is contained in:
parent
24f8eff6e3
commit
082a0b0294
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user