aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorJan Djärv2011-02-01 09:53:03 +0100
committerJan Djärv2011-02-01 09:53:03 +0100
commit4df0af9b7b64caadfe8ea3b0fd3ccbd0d777256d (patch)
tree63d921b47061c9056cb18dcfe42e2715dfe78a9d /src/xterm.c
parenta4180391acf904dde6ec72bd37b8f908f69ac3e8 (diff)
downloademacs-4df0af9b7b64caadfe8ea3b0fd3ccbd0d777256d.tar.gz
emacs-4df0af9b7b64caadfe8ea3b0fd3ccbd0d777256d.zip
Use add/delete_read_fd in xsmfns to simplify. Also restart with initial_argv.
* xsmfns.c (ice_connection_closed): Call delete_read_fd. (x_session_check_input): Change args and return type so it can be used as argument to add_read_fd. Make static. Remove call to select. Call kbd_buffer_store_event for emacs_event. (smc_save_yourself_CB): Also store initial argv to SmRestartCommand. (ice_conn_watch_CB): Call add_read_fd. * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to x_session_check_input. (x_session_initialized): Remove definition. (x_initialize): Remove setting of x_session_initialized. * xterm.h (x_session_check_input): Remove declaration.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/xterm.c b/src/xterm.c
index b6e596b854a..936a5f6b24e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7036,23 +7036,6 @@ XTread_socket (struct terminal *terminal, int expected, struct input_event *hold
7036 7036
7037 ++handling_signal; 7037 ++handling_signal;
7038 7038
7039#ifdef HAVE_X_SM
7040 /* Only check session manager input for the primary display. */
7041 if (terminal->id == 1 && x_session_have_connection ())
7042 {
7043 struct input_event inev;
7044 BLOCK_INPUT;
7045 /* We don't need to EVENT_INIT (inev) here, as
7046 x_session_check_input copies an entire input_event. */
7047 if (x_session_check_input (&inev))
7048 {
7049 kbd_buffer_store_event_hold (&inev, hold_quit);
7050 count++;
7051 }
7052 UNBLOCK_INPUT;
7053 }
7054#endif
7055
7056 /* For debugging, this gives a way to fake an I/O error. */ 7039 /* For debugging, this gives a way to fake an I/O error. */
7057 if (terminal->display_info.x == XTread_socket_fake_io_error) 7040 if (terminal->display_info.x == XTread_socket_fake_io_error)
7058 { 7041 {
@@ -9750,10 +9733,6 @@ static int x_timeout_atimer_activated_flag;
9750 9733
9751static int x_initialized; 9734static int x_initialized;
9752 9735
9753#ifdef HAVE_X_SM
9754static int x_session_initialized;
9755#endif
9756
9757/* Test whether two display-name strings agree up to the dot that separates 9736/* Test whether two display-name strings agree up to the dot that separates
9758 the screen number from the server number. */ 9737 the screen number from the server number. */
9759static int 9738static int
@@ -10672,9 +10651,6 @@ x_initialize (void)
10672 last_tool_bar_item = -1; 10651 last_tool_bar_item = -1;
10673 any_help_event_p = 0; 10652 any_help_event_p = 0;
10674 ignore_next_mouse_click_timeout = 0; 10653 ignore_next_mouse_click_timeout = 0;
10675#ifdef HAVE_X_SM
10676 x_session_initialized = 0;
10677#endif
10678 10654
10679#ifdef USE_GTK 10655#ifdef USE_GTK
10680 current_count = -1; 10656 current_count = -1;