Re: How to check for full-screen apps, robustly?
Re: How to check for full-screen apps, robustly?
- Subject: Re: How to check for full-screen apps, robustly?
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Tue, 12 Sep 2023 22:10:21 +0200
Thanks a million!
(and sorry for the late response)
For the record (i.e., Google's databases), in case somebody else googles for
this:
this seems to recognize full-screen windows even on Mac's with a notch:
if ( win_rect.size.width >= mainScreen.visibleFrame.size.width &&
win_rect.size.height >= mainScreen.visibleFrame.size.height )
Best regards, Gabriel
> On 19. Aug 2023, at 20:02, Angela Brett <email@hidden> wrote:
>
>>
>>
>> Now, this does not work any more on Mac's with "the notch".
>> At least, the Quicktime full-screen window, and a youtube video playing in
>> Safari in full-screen, is smaller than the mainScreen.frame.size .
>
> Have you tried using mainScreen.visibleFrame, or adjusting mainScreen.frame
> with mainScreen.safeAreaInsets? I haven’t tried it but I would hope those
> would give the right ‘fullscreen’ sizes for any current or future screen
> shape.
>
>
> Angela Brett (she/her)
> http://angelastic.com
> email@hidden
>
>
>
>
>
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden