For simplicity add TMainMenu component with just a single item which just closes the main form with the code:
procedure TForm1.MenuItem1Click(Sender: TObject);
begin
Close;
end;
After clicking the menu item there is no reaction until mouse is moved / key is down. Application quits only after some event. Tried Lazarus 2.0.4 and 2.1.0 trunk.
There is no such problem with the Lazarus IDE itself (when I click the menu item "Quit" of the Lazarus IDE compiled with the Cocoa interface it quits immediately). However in the Lazarus IDE code I can see the same Close call.
Does anybody have the same behaviour? Is there any fix? Using a timer seems be not helping.