# HG changeset patch # User Glenn Morris # Date 1190342457 0 # Node ID be652865dc4d717134029c5102891791c2da45a7 # Parent f4865b3d8362f1ae1c0df79865fe1dbf72c75c30 Markus Triska (x_delete_display): Compile session management conditionally. diff -r f4865b3d8362 -r be652865dc4d src/xterm.c --- a/src/xterm.c Fri Sep 21 02:38:05 2007 +0000 +++ b/src/xterm.c Fri Sep 21 02:40:57 2007 +0000 @@ -11136,10 +11136,11 @@ 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; }