(x_delete_display): Compile session management conditionally.
+2007-09-21 Markus Triska <markus.triska@gmx.at>
+
+ * xterm.c (x_delete_display): Compile session management
+ conditionally.
+
2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
* callproc.c (getenv_internal_1): New function.
for (t = terminal_list; t; t = t->next_terminal)
if (t->type == output_x_window && t->display_info.x == dpyinfo)
{
+#ifdef HAVE_X_SM
/* Close X session management when we close its display. */
if (t->id == 1 && x_session_have_connection ())
x_session_close();
-
+#endif
delete_terminal (t);
break;
}