Detecting fullscreen on Mac

后端 未结 4 1405
梦谈多话
梦谈多话 2021-01-22 18:53

I am writing an IM client for Mac (in Python, but an Objective C / Cocoa solution here is fine). I want to detect whether or not the user is currently watching a movie or playin

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-22 19:46

    The two solutions posted so far apply to “real” full-screen, but it’s worth noting that many full-screen apps just put a window over the whole screen (or, as vasi points out, a whole screen). To be accurate, you’ll have to check both.

提交回复
热议问题