Screensaver running only on one display with a multiple display setup

2023-06-08 Thread Gabriel Zachmann via Cocoa-dev
I have a screensaver that is supposed to run on all displays simultaneously. MacOS launches several instances, if there are multiple displays. I have one user, who has three displays connected to the Mac, but only the main display (center) gets a screensaver. This is on macOS Ventura 13.4. (I sho

NSScreen.screens under multiple displays

2023-06-08 Thread Gabriel Zachmann via Cocoa-dev
In my method - (void) viewDidMoveToWindow I have these lines of code: window_ = [self window]; NSUInteger idx_of_screen = [NSScreen.screens indexOfObject: window_.screen]; My question is: will this always produce the same results, whether or not the user has switched "Displays have

Re: NSScreen.screens under multiple displays

2023-06-08 Thread Alex Zavatone via Cocoa-dev
I have a 2 screen system running Ventura and another 3 screen system but not under Ventura. I could build and test for you if you wish. > On Jun 8, 2023, at 11:53 AM, Gabriel Zachmann via Cocoa-dev > wrote: > > In my method > > - (void) viewDidMoveToWindow > > I have these lines of cod

Re: NSScreen.screens under multiple displays

2023-06-08 Thread Rob Petrovec via Cocoa-dev
The order of the screens can change under various user scenarios. One easy one is simply re-arranging the displays, or even moving the menu bar thing from one display to another in the Arrange UI Displays prefs pane. Obviously plugging & unplugging displays or closing a laptop with an external

Re: NSScreen.screens under multiple displays

2023-06-08 Thread Jeff Szuhay via Cocoa-dev
>resending from correct email address< You may have to go to the Quartz level to get the active display list with CGError CGGetOnlineDisplayList( uint32_t maxDisplays, CGDir