Are you sure focus goes to the message window, when you click the "run" button?
You did not understand me. Sorry for my english. The topic is, "Editor is loosing the focus".
I have disabled the option:
Tools > Options > Environment > Message Window "Focus Msg win at compilation"
When the editor has the focus and I click on the Quick Compile" button in the toolbar, than the behaviour is not the same as when I press Alt-F9.
If there are still errors in the code, the editor remains the active window in both cases (mouse or keyboard used to quick compile)
If there are no more errors in the code and I use Alt-F9, the editor remains the active window, but NOT when I use the mouse.
At least right now, while I am working under Windows 7 to convert an old program.
But dont worry. I do not switch very often between mouse and keyboard and you gave me the hint with the "Focus Msg win at compilation" option. This helped me a lot and that was all I wanted. Thanks again. For me it goes to the ide-main bar (the window holding the menu and toolbar). This is normal. A mouse click moves focus.
Well, depends on the program and how it is designed.
I do not know if you use Anchordocking with/without sparta-form..... (I don't, I also don't make to much use of the mouse / but those are personal choices).
Anchordocking is still somewhat newer, and has its own additional issue (though I tested this issue and this problem exists without AnchorDocking).
If you do you should mention this on a bug/feature report/request.
I never heard about it and I will have a look at it. What I dont like when using Lazarus under Linux Mint 20 Cinnamon is, after minimizing Lazarus I can not just restore Lazarus. I have to restore each Lazarus Window one by one.