cocoa: calling idle event for nativeloop

git-svn-id: trunk@61412 -
This commit is contained in:
dmitry 2019-06-18 17:27:49 +00:00
parent d0da669311
commit 23631ab836

View File

@ -592,7 +592,13 @@ begin
Result:=inherited nextEventMatchingMask_untilDate_inMode_dequeue(mask,
expiration, mode, deqFlag);
{$endif}
if not Assigned(Result) then Exit;
if not Assigned(Result) then
begin
{$ifdef COCOALOOPNATIVE}
if Assigned(Application) then Application.Idle(true);
{$endif}
Exit;
end;
if ((mode = NSEventTrackingRunLoopMode) or mode.isEqualToString(NSEventTrackingRunLoopMode))
and Assigned(TrackedControl)