In short: no. X11 does not allow you to change the menu bar. This would be difficult, because first of all there is no X call to set the menu bar (which is provided by the toolkits), and also because Apple wants to distinguish between native applications and those that use X11 as a “hacked” solution to ensure compatibility with Mac
To do this, you will need to change the source code of X11.app/XQuartz.app and add this function yourself. However, keep in mind that if you are not careful, your solution will not work on other X servers due to the fact that X does not provide menu bar functionality.
For information on the source code for the X server for Mac, see here .
source share