Mercurial > emacs
comparison src/xterm.h @ 83350:e7d5238afe52
Work around crashes in X session management after normal shutdown of X server.
* src/xsmfns.c (x_session_close): New function.
* src/xterm.h: Declare it.
* src/xterm.c (XTread_socket): Don't call x_session_check_input for
secondary displays.
(x_term_init): Do not initialize X session management when the initial
display was a tty frame.
(x_delete_display): Close X session management when we close its display.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-390
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Thu, 04 Aug 2005 00:46:55 +0000 |
parents | 9216636c02fc |
children | 532e0a9335a9 |
comparison
equal
deleted
inserted
replaced
83349:3d2bd2e4c7b7 | 83350:e7d5238afe52 |
---|---|
1087 /* Defined in xsmfns.c */ | 1087 /* Defined in xsmfns.c */ |
1088 #ifdef HAVE_X_SM | 1088 #ifdef HAVE_X_SM |
1089 extern void x_session_initialize P_ ((struct x_display_info *dpyinfo)); | 1089 extern void x_session_initialize P_ ((struct x_display_info *dpyinfo)); |
1090 extern int x_session_check_input P_ ((struct input_event *bufp)); | 1090 extern int x_session_check_input P_ ((struct input_event *bufp)); |
1091 extern int x_session_have_connection P_ ((void)); | 1091 extern int x_session_have_connection P_ ((void)); |
1092 extern void x_session_close P_ ((void)); | |
1092 #endif | 1093 #endif |
1093 | 1094 |
1094 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 | 1095 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 |
1095 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 | 1096 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 |
1096 | 1097 |