+ if (! backgroundView) {
+ // This view is the parent of the XScreenSaverView, and exists only
+ // so that there is a black background behind it. Without this, when
+ // rotation is in progresss, the scrolling-list window's corners show
+ // through in the corners.
+ backgroundView = [[[NSView class] alloc] initWithFrame:[window frame]];
+ [backgroundView setBackgroundColor:[NSColor blackColor]];
+ }
+