diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
| 11136 | for (t = terminal_list; t; t = t->next_terminal) | 11136 | for (t = terminal_list; t; t = t->next_terminal) |
| 11137 | if (t->type == output_x_window && t->display_info.x == dpyinfo) | 11137 | if (t->type == output_x_window && t->display_info.x == dpyinfo) |
| 11138 | { | 11138 | { |
| 11139 | #ifdef HAVE_X_SM | ||
| 11139 | /* Close X session management when we close its display. */ | 11140 | /* Close X session management when we close its display. */ |
| 11140 | if (t->id == 1 && x_session_have_connection ()) | 11141 | if (t->id == 1 && x_session_have_connection ()) |
| 11141 | x_session_close(); | 11142 | x_session_close(); |
| 11142 | 11143 | #endif | |
| 11143 | delete_terminal (t); | 11144 | delete_terminal (t); |
| 11144 | break; | 11145 | break; |
| 11145 | } | 11146 | } |