mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 14:19:22 +02:00
gtk: improve TGtkWidgetset.WindowFromPoint (fixes issue #0014511)
git-svn-id: trunk@21590 -
This commit is contained in:
parent
9723014358
commit
bbba97d4a7
@ -9714,7 +9714,7 @@ var
|
|||||||
p: TPoint;
|
p: TPoint;
|
||||||
begin
|
begin
|
||||||
// return cached value to prevent heavy gdk_window_at_pointer call
|
// return cached value to prevent heavy gdk_window_at_pointer call
|
||||||
if (APoint = LastWFPMousePos) then
|
if (APoint = LastWFPMousePos) and GTK_IS_OBJECT(Pointer(LastWFPResult)) then
|
||||||
Exit(LastWFPResult);
|
Exit(LastWFPResult);
|
||||||
Result := 0;
|
Result := 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user