when opening a new window make sure it has focus

Signed-off-by: Chris Granger <ibdknox@gmail.com>