diff src/xmenu.c @ 5775:07a36e38e514

(xmenu_show) [USE_X_TOOLKIT]: Remove the #if 0 directives and reverse one to avoid the flickering of the menubar.
author Fred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
date Fri, 04 Feb 1994 17:13:26 +0000
parents 7035bc81858b
children 1493700a3d78
line wrap: on
line diff
--- a/src/xmenu.c	Fri Feb 04 06:46:02 1994 +0000
+++ b/src/xmenu.c	Fri Feb 04 17:13:26 1994 +0000
@@ -906,15 +906,8 @@
 
     if (menubarp)
       {
-#if 0
-	/* we are in the menubar */
-	XtUnmapWidget (f->display.x->menubar_widget); 
-	vw->call_data = (XtPointer) 1;
-	XtMapWidget (f->display.x->menubar_widget);
-#else
 	vw->call_data = (XtPointer) 1;
 	dispatch_dummy_expose (f->display.x->menubar_widget, x, y);
-#endif
       }
 
 
@@ -949,15 +942,8 @@
       
   if (menubarp)
     {
-#if 1
-      XtUnmapWidget (f->display.x->menubar_widget); 
       vw->call_data = (XtPointer) 0;
-      XtMapWidget (f->display.x->menubar_widget);
-#else
-      vw->call_data = (XtPointer) 0;
-      dispatch_dummy_expose (f->display.x->menubar_widget, 0, 0);
-      XFlushQueue ();
-#endif
+      dispatch_dummy_expose (f->display.x->menubar_widget, x, y);
     }
 
   /* Return any foreign events that were queued to the X event queue.  */