gtk: improve TGtkWidgetset.WindowFromPoint (fixes issue #0014511)

git-svn-id: trunk@21590 -
This commit is contained in:
paul 2009-09-06 13:38:03 +00:00
parent 9723014358
commit bbba97d4a7

View File

@ -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;