title: Strange NSScreen Coordinates
body: <p>This is the constructor of my <code>NSWindow</code> subclass called <code>FullScreenWindow</code> :</p>
  
  <pre><code>- (id)initWithScreen:(NSScreen *)s {
  NSRect contentRect = [s frame];
  self = [super initWithContentRect:contentRect
                          styleMask:NSBorderlessWindowMask
                            backing:NSBackingStoreBuffered
                              defer:NO
                             screen:s];
  if (self) {
      [self setCollectionBehavior:NSWindowCollectionBehaviorStationary|
                                  NSWindowCollectionBehaviorCanJoinAllSpaces|
                                  NSWindowCollectionBehaviorIgnoresCycle];
      [self setReleasedWhenClosed:YES];
      [self setBackgroundColor:[NSColor greenColor]];
      [self setAlphaValue:1.0];
      [self setOpaque:NO];
      [self setLevel:NSMainMenuWindowLevel-1];
  }
  return self;
  </code></pre>
  
  <p>}</p>
  
  <p>I wanna add such an <code>NSWindow</code> to every display in <code>[NSScreen screens]</code> but when I connect a second display, the windows only display the right way if I set <code>origin.x</code> of <code>contentRect</code> to <code>-1440</code> for the first display (and <code>0</code> for the second one). When I get <code>origin.x</code> values of the frames of the <code>NSScreen</code> instances it returns <code>0</code> for the first display and <code>1440</code> for the second one. Why are these coordinates shifted? </p>