comparison 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
comparison
equal deleted inserted replaced
5774:b57901dfbd40 5775:07a36e38e514
904 dummy.x_root = x; 904 dummy.x_root = x;
905 dummy.y_root = y; 905 dummy.y_root = y;
906 906
907 if (menubarp) 907 if (menubarp)
908 { 908 {
909 #if 0
910 /* we are in the menubar */
911 XtUnmapWidget (f->display.x->menubar_widget);
912 vw->call_data = (XtPointer) 1;
913 XtMapWidget (f->display.x->menubar_widget);
914 #else
915 vw->call_data = (XtPointer) 1; 909 vw->call_data = (XtPointer) 1;
916 dispatch_dummy_expose (f->display.x->menubar_widget, x, y); 910 dispatch_dummy_expose (f->display.x->menubar_widget, x, y);
917 #endif
918 } 911 }
919 912
920 913
921 /* We activate directly the lucid implementation */ 914 /* We activate directly the lucid implementation */
922 pop_up_menu (mw, &dummy); 915 pop_up_menu (mw, &dummy);
947 feq = feq_tmp; 940 feq = feq_tmp;
948 } 941 }
949 942
950 if (menubarp) 943 if (menubarp)
951 { 944 {
952 #if 1
953 XtUnmapWidget (f->display.x->menubar_widget);
954 vw->call_data = (XtPointer) 0; 945 vw->call_data = (XtPointer) 0;
955 XtMapWidget (f->display.x->menubar_widget); 946 dispatch_dummy_expose (f->display.x->menubar_widget, x, y);
956 #else
957 vw->call_data = (XtPointer) 0;
958 dispatch_dummy_expose (f->display.x->menubar_widget, 0, 0);
959 XFlushQueue ();
960 #endif
961 } 947 }
962 948
963 /* Return any foreign events that were queued to the X event queue. */ 949 /* Return any foreign events that were queued to the X event queue. */
964 while (feq != NULL) 950 while (feq != NULL)
965 { 951 {