# HG changeset patch # User Jan Dj¸«£rv # Date 1142951981 0 # Node ID a80a437040ab9f5315ea271f687d9dd8a4b8dade # Parent 7672ac27989e75775fb6b45ba4859a23d94ce1fb * xterm.c: x_session_initialized new variable. (x_term_init): Use x_session_initialized to check if x_session_initialize should be called. (x_initialize): Initialize x_session_initialized. diff -r 7672ac27989e -r a80a437040ab src/ChangeLog --- a/src/ChangeLog Tue Mar 21 14:27:05 2006 +0000 +++ b/src/ChangeLog Tue Mar 21 14:39:41 2006 +0000 @@ -1,3 +1,10 @@ +2006-03-21 Jan Dj,Ad(Brv + + * xterm.c: x_session_initialized new variable. + (x_term_init): Use x_session_initialized to check if + x_session_initialize should be called. + (x_initialize): Initialize x_session_initialized. + 2006-03-21 Kim F. Storm * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow diff -r 7672ac27989e -r a80a437040ab src/xterm.c --- a/src/xterm.c Tue Mar 21 14:27:05 2006 +0000 +++ b/src/xterm.c Tue Mar 21 14:39:41 2006 +0000 @@ -10039,6 +10039,10 @@ static int x_initialized; +#ifdef HAVE_X_SM +static int x_session_initialized; +#endif + #ifdef MULTI_KBOARD /* Test whether two display-name strings agree up to the dot that separates the screen number from the server number. */ @@ -10607,7 +10611,7 @@ #ifdef HAVE_X_SM /* Only do this for the first display. */ - if (x_initialized == 1) + if (!x_session_initialized++) x_session_initialize (dpyinfo); #endif @@ -10792,6 +10796,9 @@ last_tool_bar_item = -1; any_help_event_p = 0; ignore_next_mouse_click_timeout = 0; +#ifdef HAVE_X_SM + x_session_initialized = 0; +#endif #ifdef USE_GTK current_count = -1;