While fiddling with the layout in Android Studio I somehow turned my logcat window into a floating window. I cannot for the life of me restore it to docked mode.
I just realised that the settings controlling the window layout are not stored in the project because the layout was broken for all projects. I was able to fix the problem by doing this:
$ cd ~/.AndroidStudio/config
$ grep -r ddms
$ vi options/runner.layout.xml
Then I modified the Logcat configuration to look like this:
The important change was the window
option.