Catching window focus info.