Example #1
0
void
tinto_deinit (void) {
  cleanup_systray ();
  cleanup_tooltip ();
  cleanup_clock ();
  launcher_deinit ();

#ifdef ENABLE_BATTERY
  cleanup_battery ();
#endif
  panel_cleanup ();
  cleanup_config ();

  if (default_icon) {
    imlib_context_set_image (default_icon);
    imlib_free_image ();
    default_icon = NULL;
  }
  imlib_context_disconnect_display ();

  cleanup_server ();
  cleanup_timeout ();
  if (server.dsp)
    XCloseDisplay (server.dsp);

  server.dsp = NULL;
}
Example #2
0
void
fe_cleanup (void)
{
    palette_save ();

    if (prefs.autosave_url)
        url_autosave ();

#ifdef USE_PANEL
    panel_cleanup ();
#endif
}