]> code.delx.au - gnu-emacs/commitdiff
(xmenu_show) [USE_X_TOOLKIT]: Remove the #if 0 directives and reverse one to
authorFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
Fri, 4 Feb 1994 17:13:26 +0000 (17:13 +0000)
committerFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
Fri, 4 Feb 1994 17:13:26 +0000 (17:13 +0000)
avoid the flickering of the menubar.

src/xmenu.c

index c4980ff17b71bfdd69c52fccf5ef478b6ed7c0dd..a926ad1ca9aa632d4a0ab8423e2c3e9d4779118a 100644 (file)
@@ -906,15 +906,8 @@ xmenu_show (f, val, x, y, menubarp, vw)
 
     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 @@ xmenu_show (f, val, x, y, menubarp, vw)
       
   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.  */