LCL-GTK2: Improve setting a shaped form. Issue #30385, patch from Anton Kavalenka.

git-svn-id: trunk@63897 -
This commit is contained in:
juha 2020-09-20 09:56:39 +00:00
parent 2e27713e66
commit a3272084cf

View File

@ -4067,6 +4067,7 @@ function GetControlWindow(Widget: Pointer) : PGDKWindow;
begin
if Widget <> nil then
begin
gtk_widget_realize(Widget); // associate with window
If not GTKWidgetIsA(PGTKWidget(Widget), GTK_Layout_Get_Type) then
Result := PGTKWidget(Widget)^.Window
else