Set the proper parent class for window classes