diff --git a/ide/lazarus.pp b/ide/lazarus.pp index 55a8870334..1a2c664212 100644 --- a/ide/lazarus.pp +++ b/ide/lazarus.pp @@ -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)}