wsMinimized only working sometimes lazarus / 31-LCL ---------------------------------------------------------------------- winni · 2021-12-03 08:43 Hi! I placed a button on the Form to minimize it: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.Button4Click(Sender: TObject);begin   WindowState:= wsMinimized;end;  It only works sometimes. After the start of the app it works definitly not. What kind of miracle is this?? Winni PS: Lin64, gtk2, laz 2.012,  fpc 3.2 ---------------------------------------------------------------------- Handoko · 2021-12-03 08:56 I've just tested it on Lazarus 2.0.10 64-bit GTK2 Ubuntu Mate 21.10. It worked correctly, couldn't reproduce the issue. ---------------------------------------------------------------------- winni · 2021-12-03 09:48 Hi! Thanx for testing. I am here with Suse Tumbleweed and KDE. The error is reproducable, I've got not the solution but this workaround: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  Application.Minimize; Winni