mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 11:59:26 +02:00
cocoa: additional support for processing PostMessage during TrackingEvent loop
git-svn-id: trunk@61259 -
This commit is contained in:
parent
66422a9b19
commit
d3116a25f7
@ -521,14 +521,21 @@ begin
|
||||
begin
|
||||
if (Result.type_ = NSApplicationDefined)
|
||||
and (Result.subtype = LCLEventSubTypeMessage)
|
||||
and (Result.data1 = LM_NULL)
|
||||
and (Result.data2 = WidgetSet.AppHandle)
|
||||
then
|
||||
begin
|
||||
CheckSynchronize;
|
||||
NSApp.updateWindows;
|
||||
if Assigned(Application) then
|
||||
TCrackerApplication(Application).ProcessAsyncCallQueue;
|
||||
|
||||
if (Result.data1 = LM_NULL) and (Result.data2 = WidgetSet.AppHandle) then
|
||||
begin
|
||||
CheckSynchronize;
|
||||
NSApp.updateWindows;
|
||||
if Assigned(Application) then
|
||||
TCrackerApplication(Application).ProcessAsyncCallQueue;
|
||||
end
|
||||
else
|
||||
begin
|
||||
sendEvent(Result);
|
||||
end;
|
||||
|
||||
Result := nil
|
||||
end
|
||||
else if ((mode = NSEventTrackingRunLoopMode) or mode.isEqualToString(NSEventTrackingRunLoopMode))
|
||||
|
Loading…
Reference in New Issue
Block a user