mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 06:38:06 +02:00
* reverted r21200 #16af7e11b4, the removed functionality is essential when running lcl apps remote
git-svn-id: trunk@21207 -
This commit is contained in:
parent
e90595ffcc
commit
6185c6ab60
@ -131,6 +131,10 @@ type
|
||||
FDragImageListIcon: PGtkWidget;
|
||||
FDragHotStop: TPoint;
|
||||
|
||||
// cache for WindowFromPoint
|
||||
FLastWFPMousePos: TPoint;
|
||||
FLastWFPResult: HWND;
|
||||
|
||||
function CreateThemeServices: TThemeServices; override;
|
||||
function GetDeviceContextClass: TGtkDeviceContextClass; virtual; abstract;
|
||||
public
|
||||
|
@ -181,6 +181,8 @@ begin
|
||||
|
||||
inherited Create;
|
||||
|
||||
FLastWFPMousePos := Point(MaxInt, MaxInt);
|
||||
|
||||
{$IFDEF EnabledGtkThreading}
|
||||
{$IFNDEF Win32}
|
||||
if GetThreadManager(TM) and Assigned(TM.InitManager) and g_thread_supported then
|
||||
|
@ -9695,8 +9695,8 @@ var
|
||||
p: TPoint;
|
||||
begin
|
||||
// return cached value to prevent heavy gdk_window_at_pointer call
|
||||
//if (APoint = FLastWFPMousePos) and GTK_IS_WIDGET(Pointer(FLastWFPResult)) then
|
||||
// Exit(FLastWFPResult);
|
||||
if (APoint = FLastWFPMousePos) and GTK_IS_WIDGET(Pointer(FLastWFPResult)) then
|
||||
Exit(FLastWFPResult);
|
||||
//DebugLn('WindowFromPoint: ', dbgs(APoint));
|
||||
//DumpStack;
|
||||
Result := 0;
|
||||
@ -9712,8 +9712,8 @@ begin
|
||||
Widget := gtk_get_event_widget(@ev);
|
||||
Result := PtrUInt(Widget);
|
||||
end;
|
||||
//FLastWFPMousePos := APoint;
|
||||
//FLastWFPResult := Result;
|
||||
FLastWFPMousePos := APoint;
|
||||
FLastWFPResult := Result;
|
||||
end;
|
||||
|
||||
//##apiwiz##eps## // Do not remove
|
||||
|
Loading…
Reference in New Issue
Block a user