mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
mac-capture: Update capture to include menu bar and child windows
macOS 14.2 changed internal defaults of SCK requiring the inclusion of the menu bar and child windows to be enabled explicitly. This will have a slight negative impact on capture performance but is required to restore behavior of prior macOS versions.
This commit is contained in:
parent
aaf8d8b38f
commit
2457d83e0f
@ -160,6 +160,10 @@ static bool init_screen_stream(struct screen_capture *sc)
|
||||
|
||||
[sc->stream_properties setWidth:(size_t) target_window.frame.size.width];
|
||||
[sc->stream_properties setHeight:(size_t) target_window.frame.size.height];
|
||||
|
||||
if (@available(macOS 14.2, *)) {
|
||||
[sc->stream_properties setIncludeChildWindows:YES];
|
||||
}
|
||||
}
|
||||
} break;
|
||||
case ScreenCaptureApplicationStream: {
|
||||
@ -176,6 +180,10 @@ static bool init_screen_stream(struct screen_capture *sc)
|
||||
content_filter = [[SCContentFilter alloc] initWithDisplay:target_display
|
||||
includingApplications:target_application_array
|
||||
exceptingWindows:empty_array];
|
||||
if (@available(macOS 14.2, *)) {
|
||||
content_filter.includeMenuBar = YES;
|
||||
}
|
||||
|
||||
[target_application_array release];
|
||||
[empty_array release];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user