comparison src/xterm.c @ 84705:be652865dc4d

Markus Triska <markus.triska at gmx.at> (x_delete_display): Compile session management conditionally.
author Glenn Morris <rgm@gnu.org>
date Fri, 21 Sep 2007 02:40:57 +0000
parents 14682d9a9d3c
children dc568df45c10
comparison
equal deleted inserted replaced
84704:f4865b3d8362 84705:be652865dc4d
11134 /* Close all frames and delete the generic struct terminal for this 11134 /* Close all frames and delete the generic struct terminal for this
11135 X display. */ 11135 X display. */
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 }
11146 11147
11147 delete_keyboard_wait_descriptor (dpyinfo->connection); 11148 delete_keyboard_wait_descriptor (dpyinfo->connection);