LCL-Gtk2: fixed component position issues on bsSingle forms under Xfwm4, issue #41219

This commit is contained in:
Maxim Ganetsky 2025-03-12 15:29:00 +03:00
parent 7e1d786c38
commit 0845474588

View File

@ -6745,9 +6745,11 @@ begin
end;
if WidthHeightChanged then
begin
// SetWindowSizeAndPosition should be always called in xfwm4, see issue #41219
if (TopLevelWindowResizeLocked = 0) or (GTK2WidgetSet.GetWindowManager = 'xfwm4') then
SetWindowSizeAndPosition(PGtkWindow(MainWidget), LCLControl);
if TopLevelWindowResizeLocked = 0 then
begin
SetWindowSizeAndPosition(PGtkWindow(MainWidget), LCLControl);
SetResizeRequest(MainWidget);
end;
SetWidgetConstraints(LCLControl);