title: Disable focus on second screen in objective-c
body: <p>i have an app and i try it on multi screen. I have two screens and i want to disable focus on the second screen when the both sreens are enterFullscreen, i want to force the focus on the main screen.
  I tried solutions i found <a href="https://stackoverflow.com/questions/10919227/how-to-force-an-nswindow-to-be-always-active-focused">here</a> but doesn't change anything. </p>
  
  <p>following code shows how i enterFullScreen for my mainWindow and my second Window</p>
  
  <pre><code>[self.window.contentView enterFullScreenMode:[[NSScreen screens] firstObject] withOptions:nil];
          [windowArray insertObject:self.window atIndex:0];
  
          NSRect screenRect;
          NSArray *screenArray = [NSScreen screens];
          for (NSInteger index = 1; index &lt; [screenArray count]; index++)
  
          {
  
              NSScreen *screen = [screenArray objectAtIndex: index];
  
              screenRect = CGRectMake(0, 0, screen.frame.size.width , screen.frame.size.height);
              NSWindow *window = [[NSWindow alloc] initWithContentRect:screenRect styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO screen:screen];
  
              [window.contentView setWantsLayer:YES];
              window.contentView.layer.backgroundColor = [NSColor blackColor].CGColor;
  
              [window.contentView enterFullScreenMode:[[NSScreen screens] objectAtIndex:index] withOptions:nil];
              [windowArray addObject:window];
  
          }
  </code></pre>
  
  <p>When both screens are in fullScreen mode, when i click on the second window i have the focus on the second window (normal event) but i want to disable that and force to put the focus on my main Window. I tried to disable mouse event on the second screen but.. not working.
  If someone can help me ! thanks in advance</p>