Commit 7d77b043 authored by Željan Rikalo's avatar Željan Rikalo 🏊🏼
Browse files

Gtk2: fixed mouse capturing for native scrolling win controls (listbox,listview etc).issue #21713

git-svn-id: trunk@36734 -
parent 610d3f92
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment