aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2006-03-21 14:39:41 +0000
committerJan Djärv2006-03-21 14:39:41 +0000
commit11e887e29ed7373ecda47ae4956c1752b47c8c98 (patch)
tree467f52b0f29ee0fd1a713108d522ffbb77a6cd43 /src
parente563e53b5c7d7631d5f40dd1ed12933b78203c46 (diff)
downloademacs-11e887e29ed7373ecda47ae4956c1752b47c8c98.tar.gz
emacs-11e887e29ed7373ecda47ae4956c1752b47c8c98.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/xterm.c9
2 files changed, 15 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e208614b156..d699b23f059 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12006-03-21 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * xterm.c: x_session_initialized new variable.
4 (x_term_init): Use x_session_initialized to check if
5 x_session_initialize should be called.
6 (x_initialize): Initialize x_session_initialized.
7
12006-03-21 Kim F. Storm <storm@cua.dk> 82006-03-21 Kim F. Storm <storm@cua.dk>
2 9
3 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow 10 * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
diff --git a/src/xterm.c b/src/xterm.c
index 298b1c2e63d..82f3565f6c4 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -10039,6 +10039,10 @@ static XrmOptionDescRec emacs_options[] = {
10039 10039
10040static int x_initialized; 10040static int x_initialized;
10041 10041
10042#ifdef HAVE_X_SM
10043static int x_session_initialized;
10044#endif
10045
10042#ifdef MULTI_KBOARD 10046#ifdef MULTI_KBOARD
10043/* Test whether two display-name strings agree up to the dot that separates 10047/* Test whether two display-name strings agree up to the dot that separates
10044 the screen number from the server number. */ 10048 the screen number from the server number. */
@@ -10607,7 +10611,7 @@ x_term_init (display_name, xrm_option, resource_name)
10607 10611
10608#ifdef HAVE_X_SM 10612#ifdef HAVE_X_SM
10609 /* Only do this for the first display. */ 10613 /* Only do this for the first display. */
10610 if (x_initialized == 1) 10614 if (!x_session_initialized++)
10611 x_session_initialize (dpyinfo); 10615 x_session_initialize (dpyinfo);
10612#endif 10616#endif
10613 10617
@@ -10792,6 +10796,9 @@ x_initialize ()
10792 last_tool_bar_item = -1; 10796 last_tool_bar_item = -1;
10793 any_help_event_p = 0; 10797 any_help_event_p = 0;
10794 ignore_next_mouse_click_timeout = 0; 10798 ignore_next_mouse_click_timeout = 0;
10799#ifdef HAVE_X_SM
10800 x_session_initialized = 0;
10801#endif
10795 10802
10796#ifdef USE_GTK 10803#ifdef USE_GTK
10797 current_count = -1; 10804 current_count = -1;