mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 17:17:52 +02:00
LCL-Gtk2: fixed component position issues on bsSingle forms under Xfwm4, issue #41219
This commit is contained in:
parent
7e1d786c38
commit
0845474588
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user