Re: How to check for full-screen apps, robustly?

2023-08-19 Thread Angela Brett via Cocoa-dev
> > > 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

Re: How to check for full-screen apps, robustly?

2023-08-19 Thread Gabriel Zachmann via Cocoa-dev
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

How to check for full-screen apps, robustly?

2023-08-19 Thread Gabriel Zachmann via Cocoa-dev
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