/** Size of the menu starting from this menu item */
intFl_Menu_Item::size()const{
constFl_Menu_Item*m=this;
@ -99,7 +96,7 @@ class menuwindow : public Fl_Menu_Window {
@@ -99,7 +96,7 @@ class menuwindow : public Fl_Menu_Window {
public:
menutitle*title;
inthandle(int);
#ifdef __APPLE__
#ifdefined(__APPLE__) || defined (USE_X11)
intearly_hide_handle(int);
#endif
intitemheight;// zero == menubar
@ -626,7 +623,7 @@ static int backward(int menu) { // previous item in menu menu if possible
@@ -626,7 +623,7 @@ static int backward(int menu) { // previous item in menu menu if possible
}
intmenuwindow::handle(inte){
#ifdef __APPLE__
#ifdefined(__APPLE__) || defined (USE_X11)
// This off-route takes care of the "detached menu" bug on OS X.
// Apple event handler requires that we hide all menu windows right
// now, so that Carbon can continue undisturbed with handling window