mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 17:41:31 +02:00
LCL-Gtk2: fixed component position issues on bsSingle forms under Xfwm4, issue #41219
(cherry picked from commit 0845474588
)
This commit is contained in:
parent
ebf0cafab6
commit
b5fbc46391
@ -6745,9 +6745,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
if WidthHeightChanged then
|
if WidthHeightChanged then
|
||||||
begin
|
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
|
if TopLevelWindowResizeLocked = 0 then
|
||||||
begin
|
begin
|
||||||
SetWindowSizeAndPosition(PGtkWindow(MainWidget), LCLControl);
|
|
||||||
SetResizeRequest(MainWidget);
|
SetResizeRequest(MainWidget);
|
||||||
end;
|
end;
|
||||||
SetWidgetConstraints(LCLControl);
|
SetWidgetConstraints(LCLControl);
|
||||||
|
Loading…
Reference in New Issue
Block a user