mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
Gtk3: check if GetCapture works ok.
This commit is contained in:
parent
86bba40f39
commit
c52971d599
@ -1831,8 +1831,14 @@ begin
|
||||
end;
|
||||
|
||||
function TGtk3WidgetSet.GetCapture: HWND;
|
||||
var
|
||||
W:PGtkWidget;
|
||||
begin
|
||||
Result := HwndFromGtkWidget(gtk_grab_get_current);
|
||||
W := gtk_grab_get_current;
|
||||
Result := HwndFromGtkWidget(W);
|
||||
//debug
|
||||
if (Result = 0) and (W <> nil) and Gtk3IsWidget(W) then
|
||||
DebugLn('WARNING: TGtk3WidgetSet.GetCapture returned wrong result grabber is: ',g_type_name(W^.g_type_instance.g_class^.g_type),' please report a bug.');
|
||||
{$IFDEF VerboseGtk3WinApi}
|
||||
DebugLn('TGtk3WidgetSet.GetCapture ',dbgHex(Result));
|
||||
{$ENDIF}
|
||||
|
Loading…
Reference in New Issue
Block a user