How to hide the menu bar?

If I accidentally press the Alt key while taking my notes, the menu bar appears at the top of the window. I tried finding ways to hide it but couldn’t.

Because it is annoying, I have to restart Obsidian to make it go away. How do I disable it?

Which menu bar is appearing when you’re hitting the alt key? And under which operating system are you?

Could this be related to changing the Settings > Appearance > Window frame style? At least varying that option changes how/if the main menu bar appears for me on Win11.

It appears when I press something like Alt + f with the native window frame style. I don’t need the minimize and maximize buttons as I use a tiling window manager.

I’m on a Linux machine (Arch Linux).