Cannot confirm at Win10 Laz3.2 fpc 3.2.2. This works as expected:
unit Unit1;
{$mode objfpc}{$H+}Thanks for the reply tetrastes.
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
WindowState := wsMaximized;
end;
end.
You have to show your code.
Sorry, I should have stated that the issue is in Linux, but I've just tried in Win10 and although any Constraint settings are observed the taskbar is not taken into consideration, so the bottom of the maximised form is hidden behind the taskbar as there is no constraint on the height.
As for code, exactly as you have, WindowState := wsMaximized;.
So to sum up, in Linux WindowState := wsMaximized ignores any constraint settings. In Windows WindowState := wsMaximized observes constraints but ignores the taskbar height. I've doubled checked these results with your code and get the same.