Reply To: Syphon Virtual Screen (again!)

Home Forums Syphon Syphon Implementations – User Syphon Virtual Screen (again!) Reply To: Syphon Virtual Screen (again!)

#6184
baby-rabbit
Participant

Andrea – try the following:

CGDirectDisplayID display[32];
uint32_t displayCount = 0;
CGGetActiveDisplayList(32, display, &displayCount);
for(int i = 0; i < displayCount; i++) {
io_service_t service = CGDisplayIOServicePort(display[i]);
CFStringRef nameRef = IORegistryEntryCreateCFProperty(service, CFSTR("CFBundleIdentifier"), kCFAllocatorDefault, 0);
if(CFStringCompare(nameRef, CFSTR("info.ennowelbers.framebuffer"), 0)==0) {
// success! - display[i] is the display using the proxy framebuffer
}
}