After leaving terminal with Ctrl-D or exit commands the input focus isn't set back to the folder view. The problem appears, because TerminalPanel::isHiddenInVisibleWindow
returns not what it supposed to return. I moved unwanted checks from it inside TerminalPanel::dockVisibilityChanged
BUG: 407979