Little CGLWindow refactoring