unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 23.0.50; xterm.c patch: conditional compilation for session management
@ 2007-09-16 13:46 Markus Triska
  2007-09-21  2:40 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Triska @ 2007-09-16 13:46 UTC (permalink / raw)
  To: emacs-pretest-bug


Following patch yields conditional compilation of session management
functions in one additional place in xterm.c.

2007-09-16  Markus Triska  <markus.triska@gmx.at>

	* xterm.c (x_delete_display): compile session management
	conditionally


diff --git a/src/xterm.c b/src/xterm.c
index fcf5e0b..cdd2c5c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11136,9 +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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: 23.0.50; xterm.c patch: conditional compilation for session management
  2007-09-16 13:46 23.0.50; xterm.c patch: conditional compilation for session management Markus Triska
@ 2007-09-21  2:40 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2007-09-21  2:40 UTC (permalink / raw)
  To: Markus Triska; +Cc: emacs-pretest-bug

Markus Triska wrote:

> Following patch yields conditional compilation of session management
> functions in one additional place in xterm.c.

Thanks; applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-09-21  2:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-16 13:46 23.0.50; xterm.c patch: conditional compilation for session management Markus Triska
2007-09-21  2:40 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).