macOS fullscreen functionality and titleBarStyle: 'hidden'


#1

I have an application with the main window having the titleBarStyle property set to hidden. I have a div in my HTML acting as my title bar with -WebKit-app-region: drag; attached and it all works fine. However when the window goes fullscreen and you bring your mouse to access the menus, a title bar comes down and covers my div.

Can I disable fullscreen functionality on my window? I know this is against the trend of macOS of making everything fullscreen-able however I can’t think of another practical solution to this problem.

Basically, setting titleBarStyle to hidden should hide all title bars. It does not hide the title bar when the window is fullscreen. To avoid this, can I disable fullscreen functionality on my window?