Is there a way to replace the standard X11 menu bar?

I have an X11 application for Mac OS X 10.5 and higher, and I'm trying to write a wrapper around it to give it a more natural look.
Does anyone know if it is possible to replace the standard X11 console with my own custom panel so that it appears whenever the application window is open? And if so, how do I do this with Cocoa?

+4
source share
1 answer

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 .

0
source

All Articles