mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 22:58:14 +02:00
LCL: optimized TApplication.GetControlAtMouse (no functional changes), patch by Rika, issue #40465
This commit is contained in:
parent
f27a50f74e
commit
895c80c4ea
@ -569,15 +569,13 @@ begin
|
||||
Result := FLastMouseControl
|
||||
else
|
||||
Result := FindControlAtPosition(P, False);
|
||||
|
||||
if Assigned(Result) and (csDesigning in Result.ComponentState) then
|
||||
Result := nil;
|
||||
if Assigned(Result) then
|
||||
begin
|
||||
FLastMouseControlValid := True;
|
||||
FLastMousePos := p;
|
||||
FLastMouseControl := Result;
|
||||
end;
|
||||
|
||||
if not Assigned(Result) or (csDesigning in Result.ComponentState) then
|
||||
Exit(nil);
|
||||
|
||||
FLastMouseControlValid := True;
|
||||
FLastMousePos := p;
|
||||
FLastMouseControl := Result;
|
||||
end;
|
||||
|
||||
procedure TApplication.SetBidiMode(const AValue: TBiDiMode) ;
|
||||
|
Loading…
Reference in New Issue
Block a user