mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:39:31 +02:00
gtk: improve MouseFromPoint return in case of using cache
git-svn-id: trunk@19973 -
This commit is contained in:
parent
716ffb3fd9
commit
cf9bf7c039
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user