X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/e8757f091a502b858912a4c267210e009227d6e6..35f047c06603ce2e549e43ba38de0e61083b0311:/src/xsmfns.c diff --git a/src/xsmfns.c b/src/xsmfns.c index 8067899f93..680fea652a 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c @@ -1,7 +1,7 @@ /* Session management module for systems which understand the X Session management protocol. -Copyright (C) 2002-2012 Free Software Foundation, Inc. +Copyright (C) 2002-2015 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -35,7 +35,6 @@ along with GNU Emacs. If not, see . */ #include "sysselect.h" #include "frame.h" #include "termhooks.h" -#include "termopts.h" #include "xterm.h" #include "process.h" #include "keyboard.h" @@ -108,8 +107,7 @@ x_session_check_input (int fd, void *data) will be called. */ emacs_event.kind = NO_EVENT; - ret = IceProcessMessages (SmcGetIceConnection (smc_conn), - (IceReplyWaitInfo *)0, (Bool *)0); + ret = IceProcessMessages (SmcGetIceConnection (smc_conn), 0, 0); if (ret != IceProcessMessagesSuccess) { /* Either IO error or Connection closed. */ @@ -515,9 +513,11 @@ Do not call this function yourself. */) prevent. Fix this in next version. */ Fkill_emacs (Qnil); +#if 0 /* This will not be reached, but we want kill-emacs-hook to be run. */ SmcCloseConnection (smc_conn, 0, 0); ice_connection_closed (); +#endif } return Qnil;