mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 02:39:15 +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
|
begin
|
||||||
if (Result.type_ = NSApplicationDefined)
|
if (Result.type_ = NSApplicationDefined)
|
||||||
and (Result.subtype = LCLEventSubTypeMessage)
|
and (Result.subtype = LCLEventSubTypeMessage)
|
||||||
and (Result.data1 = LM_NULL)
|
|
||||||
and (Result.data2 = WidgetSet.AppHandle)
|
|
||||||
then
|
then
|
||||||
begin
|
begin
|
||||||
CheckSynchronize;
|
|
||||||
NSApp.updateWindows;
|
if (Result.data1 = LM_NULL) and (Result.data2 = WidgetSet.AppHandle) then
|
||||||
if Assigned(Application) then
|
begin
|
||||||
TCrackerApplication(Application).ProcessAsyncCallQueue;
|
CheckSynchronize;
|
||||||
|
NSApp.updateWindows;
|
||||||
|
if Assigned(Application) then
|
||||||
|
TCrackerApplication(Application).ProcessAsyncCallQueue;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
sendEvent(Result);
|
||||||
|
end;
|
||||||
|
|
||||||
Result := nil
|
Result := nil
|
||||||
end
|
end
|
||||||
else if ((mode = NSEventTrackingRunLoopMode) or mode.isEqualToString(NSEventTrackingRunLoopMode))
|
else if ((mode = NSEventTrackingRunLoopMode) or mode.isEqualToString(NSEventTrackingRunLoopMode))
|
||||||
|
Loading…
Reference in New Issue
Block a user