IDE: Call UseDesktop (added in 51081) only when IDE is docked. Shortens startup time for undocked IDE.

git-svn-id: trunk@51083 -
This commit is contained in:
juha 2015-12-30 08:35:41 +00:00
parent b32ffa065f
commit e0c99b1197

View File

@ -1590,7 +1590,8 @@ begin
// The message window height does not change arbitrarily any more in a docked IDE.
// ToDo: Find out why it works and solve it properly.
// Message window gets a special treatment while it should not, see issue #17908.
EnvironmentOptions.UseDesktop(EnvironmentOptions.ActiveDesktop);
if IDEDockMaster<>nil then
EnvironmentOptions.UseDesktop(EnvironmentOptions.ActiveDesktop);
fUserInputSinceLastIdle:=true; // Idle work gets done initially before user action.
MainIDEBar.ApplicationIsActivate:=true;