mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 13:19:21 +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
|
Result := FLastMouseControl
|
||||||
else
|
else
|
||||||
Result := FindControlAtPosition(P, False);
|
Result := FindControlAtPosition(P, False);
|
||||||
|
|
||||||
if Assigned(Result) and (csDesigning in Result.ComponentState) then
|
if not Assigned(Result) or (csDesigning in Result.ComponentState) then
|
||||||
Result := nil;
|
Exit(nil);
|
||||||
if Assigned(Result) then
|
|
||||||
begin
|
FLastMouseControlValid := True;
|
||||||
FLastMouseControlValid := True;
|
FLastMousePos := p;
|
||||||
FLastMousePos := p;
|
FLastMouseControl := Result;
|
||||||
FLastMouseControl := Result;
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TApplication.SetBidiMode(const AValue: TBiDiMode) ;
|
procedure TApplication.SetBidiMode(const AValue: TBiDiMode) ;
|
||||||
|
Loading…
Reference in New Issue
Block a user