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.siz
>
>
> 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
Thanks a lot for the quick response.
I was thinking of the styleMask, too, but IIUC, the documentation
of CGWindowListCopyWindowInfo says that I get only
Required Window List Keys and Optional Window List Keys,
and the styleMask is not part of those.
Best regards, Gabriel
smime.p7s
Descripti
How can I robustly check in my app whether or not there is any other window
running in full-screen?
I would like to prevent my app from going full-screen if another app is
currently running in full-screen.
(For instance, when the user is watching a video in Quicktime Player or Safari
in full-sc