fixed closing other than active window using mouse