Mint Cinnamon: Cannot show minimized form lazarus / 32-Linux ---------------------------------------------------------------------- CM630 · 2025-03-23 10:52 The following code shows a minimized form on Windows. In Linux Mint Cinnamon it does on the second time - the event which executes the code needs to be fired manually twice before the form is shown, after the first execution nothing happens 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   self.WindowState := wsNormal;  self.Show; Also, the following code works from the first time: 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   self.WindowState := wsNormal;  self.Show;  ShowMessage ('');  self.Show; The following code improves nothing: 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   self.WindowState := wsNormal;  self.Show;  spleep(500);    self.Show; Any idea how to fix this? I have not tried those (non)syncronous things, if no better solution exists, I will try them. ---------------------------------------------------------------------- Fred vS · 2025-03-23 12:32 Hello. Mint-Cinnamon uses Muffin window manager (a fork of Mutter WM). And it has features "by design" that are indeed not fully compatible like other working WM. (And Muffin devs do not have plan to fix it). ---------------------------------------------------------------------- CM630 · 2025-03-23 17:15 But the ShowMessage sort of solves the issue, so probably I can emulate a ShowMessage, which shows nothing? I will try with a timer. EDIT: I made it work the following way: 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 TfrmMainForm.ShowApp;begin  self.WindowState := wsNormal;  self.Show;  self.BringToFront;  self.SetFocus;  {$IFDEF LINUX}  tmrTray.Enabled := True;  {$endif}end; procedure TfrmMainForm.tmrTrayTimer(Sender: TObject);begin  //Used only in Linux, to override a bug in Mint Cinnamon  self.Show;  tmrTray.Enabled := False;end;