Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if my app is running in full screen mode?

I need to check if my app is running in full screen mode. Because I have button witch slides out panel, and it should be sliced differently when in full screen. How can I check it?

like image 257
hockeyman Avatar asked Jan 25 '26 12:01

hockeyman


1 Answers

The window displayed full screen should have NSFullScreenWindowMask set.

See Apple's docs here

For example you could use:

if ([yourwindow styleMask] & NSFullScreenWindowMask) {
  ....it's full screen
}
like image 95
MattR Avatar answered Jan 28 '26 00:01

MattR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!