AvdLee / RocketSimApp

Enhancing the iOS simulator for productivity
570 stars 20 forks source link

Invisible RocketSim window breaks SCContentSharingPicker for window sharing/recording #490

Closed renssies closed 2 months ago

renssies commented 3 months ago

Describe the bug RocketSim seems to have an always on top invisible window. However this window is included in the SCContentSharingPicker of the ScreenCaptureKit framework. Since the window is always on top this means you can't select any other windows using this picker.

Safari is one of the apps using ScreenCaptureKit and the SCContentSharingPicker.

To Reproduce Steps to reproduce the behavior:

  1. Open Safari
  2. Go to any video call platform that supports screen sharing (I used Google meet)
  3. Enter a meeting and share the screen
  4. Safari will prompt if you want to share a screen or share a window. Choose share window
  5. Try to share a window that is not RocketSim

Expected behavior For the invisible RocketSim window to not be selectable for ScreenCaptureKit. I believe setting the sharingType on an NSWindow disables it for screen sharing.

Screenshots Screenshot 2024-03-29 at 16 14 36

Desktop (please complete the following information):

Additional context A video of the problem. In this I try to screen share just the Bambu Studio app (green icon). https://youtu.be/S6nXj_zISVI

Workaround Hold on the green fullscreen icon of a window and choose "Share window with X"

AvdLee commented 2 months ago

Ouch, this is not good! Thanks for the detail report and even the coding fix that should solve this. I'll try to push this into the next build!

AvdLee commented 2 months ago

This will be fixed in 12.9.0