foreground window check