LCL-GTK2: Fix dragging TLabel/TPanel with TDockImageWindow. Issue #37371, patch from Joeny Ang.

git-svn-id: trunk@63572 -
This commit is contained in:
juha 2020-07-16 10:28:52 +00:00
parent e2840b9665
commit 6d6cea00e9

View File

@ -5139,7 +5139,8 @@ begin
// capturing is always gtkwindow dependent. On showing a new window
// the gtk will put a new widget on the grab stack.
// -> release our capture
ReleaseMouseCapture;
if not ACustomForm.ClassNameIs('TDockImageWindow') then
ReleaseMouseCapture;
end;
if gtk_widget_visible(SenderWidget) then