diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xsmfns.c | 2 | ||||
| -rw-r--r-- | src/xterm.c | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f463cc71fd8..9b0f435881f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2014-09-04 Jan D <jhd@f20.localdomain> | ||
| 2 | |||
| 3 | * xterm.c (x_term_init): Don't call x_session_initialize if running | ||
| 4 | as a daemon (Bug#18375). | ||
| 5 | |||
| 6 | * xsmfns.c: Initialize ice_fd. | ||
| 7 | |||
| 1 | 2014-09-04 Paul Eggert <eggert@cs.ucla.edu> | 8 | 2014-09-04 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 9 | ||
| 3 | Less chatter in 'make' output. | 10 | Less chatter in 'make' output. |
diff --git a/src/xsmfns.c b/src/xsmfns.c index 81b012690f9..8721cc81b03 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c | |||
| @@ -49,7 +49,7 @@ static struct input_event emacs_event; | |||
| 49 | 49 | ||
| 50 | /* The descriptor that we use to check for data from the session manager. */ | 50 | /* The descriptor that we use to check for data from the session manager. */ |
| 51 | 51 | ||
| 52 | static int ice_fd; | 52 | static int ice_fd = -1; |
| 53 | 53 | ||
| 54 | /* A flag that says if we are in shutdown interactions or not. */ | 54 | /* A flag that says if we are in shutdown interactions or not. */ |
| 55 | 55 | ||
diff --git a/src/xterm.c b/src/xterm.c index beb7d78841d..767de9786cb 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -11183,8 +11183,8 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 11183 | #ifdef HAVE_X_SM | 11183 | #ifdef HAVE_X_SM |
| 11184 | /* Only do this for the very first display in the Emacs session. | 11184 | /* Only do this for the very first display in the Emacs session. |
| 11185 | Ignore X session management when Emacs was first started on a | 11185 | Ignore X session management when Emacs was first started on a |
| 11186 | tty. */ | 11186 | tty or started as a daemon. */ |
| 11187 | if (terminal->id == 1) | 11187 | if (terminal->id == 1 && ! IS_DAEMON) |
| 11188 | x_session_initialize (dpyinfo); | 11188 | x_session_initialize (dpyinfo); |
| 11189 | #endif | 11189 | #endif |
| 11190 | 11190 | ||