1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 01:41:01 -08:00

Markus Triska <markus.triska at gmx.at>

(x_delete_display): Compile session management conditionally.
This commit is contained in:
Glenn Morris 2007-09-21 02:41:05 +00:00
parent 8db04dd25b
commit ea1bf8c799
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -11136,10 +11136,11 @@ x_delete_display (dpyinfo)
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;
}