/** Reload the menu. */ void ReloadMenu(void) { shouldReload = 1; if(!menuShown) { ShutdownRootMenu(); DestroyRootMenu(); InitializeRootMenu(); ParseConfig(configPath); StartupRootMenu(); shouldReload = 0; } }
/** Shutdown the various JWM components. * This is called before the X connection is closed. */ void Shutdown(void) { /* This order is important. */ ShutdownSwallow(); # ifndef DISABLE_CONFIRM ShutdownDialogs(); # endif ShutdownPopup(); ShutdownKeys(); ShutdownPager(); ShutdownRootMenu(); ShutdownDock(); ShutdownTray(); ShutdownTrayButtons(); ShutdownTaskBar(); ShutdownClock(); ShutdownBorders(); ShutdownClients(); ShutdownBackgrounds(); ShutdownIcons(); ShutdownCursors(); ShutdownFonts(); ShutdownColors(); ShutdownGroups(); ShutdownDesktops(); ShutdownPlacement(); ShutdownHints(); ShutdownScreens(); ShutdownSettings(); ShutdownCommands(); }