Fix window focus/maximize problem in spawner mode