/* Write the geometry values of a single window to the recent file. */
static void write_recent_geom(gpointer key _U_, gpointer value, gpointer rfh)
/* Write the geometry values of a single window to the recent file. */
static void write_recent_geom(gpointer key _U_, gpointer value, gpointer rfh)
{
  window_geometry_t *geom = (window_geometry_t *)value;
  FILE *rf = (FILE *)rfh;
  fprintf(rf, "\n# Geometry and maximized state of %s window.\n", geom->key);
  fprintf(rf, "# Decimal integers.\n");
  fprintf(rf, RECENT_GUI_GEOMETRY "%s.x: %d\n", geom->key, geom->x);
  fprintf(rf, RECENT_GUI_GEOMETRY "%s.y: %d\n", geom->key, geom->y);
  fprintf(rf, RECENT_GUI_GEOMETRY "%s.width: %d\n", geom->key,
          geom->width);
  fprintf(rf, RECENT_GUI_GEOMETRY "%s.height: %d\n", geom->key,
          geom->height);
  fprintf(rf, "# TRUE or FALSE (case-insensitive).\n");
  fprintf(rf, RECENT_GUI_GEOMETRY "%s.maximized: %s\n", geom->key,
          geom->maximized == TRUE ? "TRUE" : "FALSE");
}