From ea1bf8c799487bf27aa5bc92ed443bcea0717aa3 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 21 Sep 2007 02:41:05 +0000 Subject: [PATCH] Markus Triska (x_delete_display): Compile session management conditionally. --- src/ChangeLog | 5 +++++ src/xterm.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 13ae3a20dd6..2fc10979176 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-09-21 Markus Triska + + * xterm.c (x_delete_display): Compile session management + conditionally. + 2007-09-20 Stefan Monnier * callproc.c (getenv_internal_1): New function. diff --git a/src/xterm.c b/src/xterm.c index dc69af88a12..c67238b2234 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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; } -- 2.39.5