Properly configure X.