Commit ea1bf8c7 authored by Glenn Morris's avatar Glenn Morris
Browse files

Markus Triska <markus.triska at gmx.at>

(x_delete_display): Compile session management conditionally.
parent 8db04dd2
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> 2007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
* callproc.c (getenv_internal_1): New function. * callproc.c (getenv_internal_1): New function.
......
...@@ -11136,10 +11136,11 @@ x_delete_display (dpyinfo) ...@@ -11136,10 +11136,11 @@ x_delete_display (dpyinfo)
for (t = terminal_list; t; t = t->next_terminal) for (t = terminal_list; t; t = t->next_terminal)
if (t->type == output_x_window && t->display_info.x == dpyinfo) if (t->type == output_x_window && t->display_info.x == dpyinfo)
{ {
#ifdef HAVE_X_SM
/* Close X session management when we close its display. */ /* Close X session management when we close its display. */
if (t->id == 1 && x_session_have_connection ()) if (t->id == 1 && x_session_have_connection ())
x_session_close(); x_session_close();
#endif
delete_terminal (t); delete_terminal (t);
break; break;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment