Lazarus IDE: make MainFormOnTaskBar True, issue #39654

This commit is contained in:
Ondrej Pokorny 2024-05-22 09:18:17 +02:00
parent bb69320587
commit 8de57d2e1c

View File

@ -117,10 +117,9 @@ begin
{$IFDEF Windows}
// on windows when MainFormOnTaskBar = True the main form becomes
// the parent of all other forms and therefore it always shows under
// other forms. For Lazarus the main form is the component palette form
// and it is not a desired behavior to see it always under other windows.
// So until we have a good docking solution let's have a dummy taskbar windows on windows.
Application.{%H-}MainFormOnTaskBar := False;
// other forms. This is absolutely OK and native for Windows and Delphi behaves the same.
// It also solves issues with multiple displays when Lazarus IDE is on one display and the taskbar button on the other one.
Application.{%H-}MainFormOnTaskBar := True;
{$ENDIF}
{$IF DEFINED(MSWINDOWS) AND DECLARED(GlobalSkipIfNoLeaks)}