rem: wMenuSetEnabled(menu, entry->order, False);
add: if (inside) return; inside = 1;
context: shutdownCommand(WMenu *menu, WMenuEntry *entry){    /* prevent reentrant calls */    wMenuSetEnabled(menu, entry->order, False);    if ((int)entry->clientdata==M_QUICK	|| wMessageDialog(menu->frame->screen_ptr, _("Close X session"), 	  _("Close Window System session?\n(all applications will be closed)"),			  _("Exit"), _("Cancel"), NULL)==WAPRDefault) {/*	printf(_("Exiting...\n"));*/		wScreenSaveState(menu->frame->screen_ptr); 	WipeDesktop(menu->frame->screen_ptr);		ExecExitScript();	exit(0);    }    wMenuSetEnabled(menu, entry->order, True);}