]> code.delx.au - gnu-emacs/commitdiff
Markus Triska <markus.triska at gmx.at>
authorGlenn Morris <rgm@gnu.org>
Fri, 21 Sep 2007 02:41:05 +0000 (02:41 +0000)
committerGlenn Morris <rgm@gnu.org>
Fri, 21 Sep 2007 02:41:05 +0000 (02:41 +0000)
(x_delete_display): Compile session management conditionally.

src/ChangeLog
src/xterm.c

index 13ae3a20dd69ac1b38f523d73f6549349fcc1a10..2fc109791763695b84c7438f93618e9ead694817 100644 (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.
index dc69af88a12fcd513d2173cd7d263f296f5b8852..c67238b2234eafa3ee1687ce66d8678d93ec4d38 100644 (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;
       }