Code Monkey home page Code Monkey logo

Comments (5)

koekeishiya avatar koekeishiya commented on August 26, 2024 1

Editor’s note: Updated to remove paragraph that said there was an API developers could adopt to avoid this pop-up. There is no API to avoid this pop-up.

Source: https://9to5mac.com/2024/08/06/macos-sequoia-screen-recording-privacy-prompt/

--

There is no way this gets through the beta, friggin Apple..

from yabai.

shinyquagsire23 avatar shinyquagsire23 commented on August 26, 2024 1

actually wait CADisplayLink isn't deprecated and got macOS (non-catalyst) support at some point, if it's just about getting the main monitor rate then that should be fine maybe (worked for me to get vsync updates on visionOS at least)

edit: usage example if anyone is curious, https://github.com/alvr-org/alvr-visionos/blob/main/ALVRClient/RealityKitClientSystem.swift#L77

from yabai.

kanghengliu avatar kanghengliu commented on August 26, 2024

EDIT:
Changed title. Checked, none of the currently in use by yabai Core Display APIs are deprecated yet. It is Core Video API CVDisplayLink that is deprecated in macOS ver>15.0. See more in apple docs: CVDisplayLink

Specifically, yabai's animation related functions like window_manager_animate_window_list_async and window_manager_animate_window_list_thread_proc used some of the deprecated CVDisplayLink APIs. See below as example:

yabai/src/window_manager.c

Lines 698 to 702 in 4572d69

CVDisplayLinkRef link;
SLSReenableUpdate(context->animation_connection);
CVDisplayLinkCreateWithActiveCGDisplays(&link);
CVDisplayLinkSetOutputCallback(link, window_manager_animate_window_list_thread_proc, context);
CVDisplayLinkStart(link);

@koekeishiya I haven't got time/skill to be able to migrate per the instructions provided by apple docs. Could you please take a look at it? I'm on dev beta 15.1, and would happily assist in testing.

from yabai.

shinyquagsire23 avatar shinyquagsire23 commented on August 26, 2024

wait does this actually pop up a prompt? If anything I feel like CVDisplayLink/CADisplayLink doing any prompt pop-up would be a bug that should be Feedback'd, it'd basically apply to every media player app that has to sync frame timing

from yabai.

kanghengliu avatar kanghengliu commented on August 26, 2024

Since the prompt is caused by API deprecation, and I have not spotted any deprecated screen capture APIs in use by yabai, CVDisplayLink is my suspect. And yes, i do agree that it should be Feedback'd. However I can't yet confirm if it actually affects media players that employ this method, as I'm not sure if my media player does this or not(IINA and infuse), and they do not trigger the permission prompt.

from yabai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.