mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 23:17:10 +01:00
Gtk2: fixed mouse capturing for native scrolling win controls (listbox,listview etc).issue #21713
git-svn-id: trunk@36734 -
This commit is contained in:
parent
610d3f9251
commit
7d77b04315
@ -4717,7 +4717,18 @@ begin
|
||||
Result := WidgetInfo^.ClientWidget
|
||||
else
|
||||
Result := WidgetInfo^.CoreWidget;
|
||||
{$IFDEF GTK2_USE_OLD_CAPTURE}
|
||||
end;
|
||||
{$ELSE}
|
||||
end else
|
||||
if GTK_IS_SCROLLED_WINDOW(Widget) and (GTK_IS_BIN(Widget)) then
|
||||
begin
|
||||
{$IFDEF VerboseMouseCapture}
|
||||
writeln('GetDefaultMouseCaptureWidget: **',TWinControl(LCLObject).ClassName,' grabbing viewport ...');
|
||||
{$ENDIF}
|
||||
Result := gtk_bin_get_child(PGtkBin(Widget));
|
||||
end;
|
||||
{$ENDIF}
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user