mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:39:30 +02:00
Gtk3: fixed ClientHeight does not equal to Height on wayland.Patch by Anton Kavalenka. issue #41345
This commit is contained in:
parent
eba745ba63
commit
f14ddd7eea
@ -8875,8 +8875,13 @@ begin
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
NewSize.cx := AGdkRect^.width;
|
||||
NewSize.cy := AGdkRect^.height;
|
||||
if decoration_flags(TCustomForm(Actl.LCLObject))<>[] then
|
||||
PGtkWIndow(Actl.widget)^.get_size(@newSize.cx, @newsize.cy)
|
||||
else
|
||||
begin
|
||||
NewSize.cx := AGdkRect^.width;
|
||||
NewSize.cy := AGdkRect^.height;
|
||||
end;
|
||||
|
||||
//writeln(format('Gkt3SizeAllocate w=%d h=%d',[NewSize.cx,NewSize.cy]));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user