Would you mind if I opened the window?

Which one is correct?

  1. Would you mind if I opened the window?
  2. Would you mind if I open the window?

You will hear both versions. They are both widely accepted, but grammatically the preference is ‘opened’ (it is the form which matches ‘would you’).