gtk: improve MouseFromPoint return in case of using cache

git-svn-id: trunk@19973 -
This commit is contained in:
paul 2009-05-15 13:43:37 +00:00
parent 716ffb3fd9
commit cf9bf7c039

View File

@ -9735,7 +9735,7 @@ var
p: TPoint;
begin
// return cached value to prevent heavy gdk_window_at_pointer call
if APoint = FLastWFPMousePos then
if (APoint = FLastWFPMousePos) and GTK_IS_WIDGET(Pointer(FLastWFPResult)) then
Exit(FLastWFPResult);
//DebugLn('WindowFromPoint: ', dbgs(APoint));
//DumpStack;