setting focus to window. The focus was destroyed by corner clicking to s...

...imulate user interaction