Fixed focus restoring issue #384
Merge pull request #388 from r1pp3rj4ck/fix-hiding

Fixed issue #384