diff options
| author | Richard M. Stallman | 1994-04-17 23:46:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-17 23:46:08 +0000 |
| commit | c2df547cfa4bb251f5a7fbbec60d6b340c2db588 (patch) | |
| tree | f99843f55f9004d7488b07b183c2f34211597770 /src/xterm.c | |
| parent | eb506b8d0ee459706a1860f35ba46e7cdf8c7edd (diff) | |
| download | emacs-c2df547cfa4bb251f5a7fbbec60d6b340c2db588.tar.gz emacs-c2df547cfa4bb251f5a7fbbec60d6b340c2db588.zip | |
(Xatom_editres_name): Variable defined.
(XTread_socket): Handle that kind of message.
(x_term_init): Specify -name option in XtAppInitialize.
(Qface, Qmouse_face): Supply missing Lisp_Object.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index 2f385266f43..90358bee117 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -90,6 +90,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 90 | extern XtAppContext Xt_app_con; | 90 | extern XtAppContext Xt_app_con; |
| 91 | extern Widget Xt_app_shell; | 91 | extern Widget Xt_app_shell; |
| 92 | extern void free_frame_menubar (); | 92 | extern void free_frame_menubar (); |
| 93 | extern void _XEditResCheckMessages (); | ||
| 93 | #endif /* USE_X_TOOLKIT */ | 94 | #endif /* USE_X_TOOLKIT */ |
| 94 | 95 | ||
| 95 | #ifndef USE_X_TOOLKIT | 96 | #ifndef USE_X_TOOLKIT |
| @@ -309,7 +310,7 @@ extern Window requestor_window; | |||
| 309 | /* Nonzero enables some debugging for the X interface code. */ | 310 | /* Nonzero enables some debugging for the X interface code. */ |
| 310 | extern int _Xdebug; | 311 | extern int _Xdebug; |
| 311 | 312 | ||
| 312 | extern Qface, Qmouse_face; | 313 | extern Lisp_Object Qface, Qmouse_face; |
| 313 | 314 | ||
| 314 | #else /* ! defined (HAVE_X11) */ | 315 | #else /* ! defined (HAVE_X11) */ |
| 315 | 316 | ||
| @@ -3312,6 +3313,9 @@ Atom Xatom_wm_window_moved; /* When the WM moves us. */ | |||
| 3312 | /* Window manager communication. */ | 3313 | /* Window manager communication. */ |
| 3313 | Atom Xatom_wm_change_state; | 3314 | Atom Xatom_wm_change_state; |
| 3314 | 3315 | ||
| 3316 | /* EditRes protocol */ | ||
| 3317 | Atom Xatom_editres_name; | ||
| 3318 | |||
| 3315 | /* Record the last 100 characters stored | 3319 | /* Record the last 100 characters stored |
| 3316 | to help debug the loss-of-chars-during-GC problem. */ | 3320 | to help debug the loss-of-chars-during-GC problem. */ |
| 3317 | int temp_index; | 3321 | int temp_index; |
| @@ -3450,6 +3454,13 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 3450 | f->display.x->top_pos = new_y; | 3454 | f->display.x->top_pos = new_y; |
| 3451 | } | 3455 | } |
| 3452 | } | 3456 | } |
| 3457 | #ifdef USE_X_TOOLKIT | ||
| 3458 | else if (event.xclient.message_type == Xatom_editres_name) | ||
| 3459 | { | ||
| 3460 | struct frame *f = x_any_window_to_frame (event.xclient.window); | ||
| 3461 | _XEditResCheckMessages (f->display.x->widget, NULL, &event, NULL); | ||
| 3462 | } | ||
| 3463 | #endif /* USE_X_TOOLKIT */ | ||
| 3453 | } | 3464 | } |
| 3454 | break; | 3465 | break; |
| 3455 | 3466 | ||
| @@ -5912,11 +5923,13 @@ x_term_init (display_name) | |||
| 5912 | x_focus_frame = x_highlight_frame = 0; | 5923 | x_focus_frame = x_highlight_frame = 0; |
| 5913 | 5924 | ||
| 5914 | #ifdef USE_X_TOOLKIT | 5925 | #ifdef USE_X_TOOLKIT |
| 5915 | argv = (char **) XtMalloc (3 * sizeof (char *)); | 5926 | argv = (char **) XtMalloc (5 * sizeof (char *)); |
| 5916 | argv [0] = ""; | 5927 | argv [0] = ""; |
| 5917 | argv [1] = "-display"; | 5928 | argv [1] = "-display"; |
| 5918 | argv [2] = display_name; | 5929 | argv [2] = display_name; |
| 5919 | argc = 3; | 5930 | argv [3] = "-name"; |
| 5931 | argv [4] = "emacs"; | ||
| 5932 | argc = 5; | ||
| 5920 | Xt_app_shell = XtAppInitialize (&Xt_app_con, "Emacs", | 5933 | Xt_app_shell = XtAppInitialize (&Xt_app_con, "Emacs", |
| 5921 | emacs_options, XtNumber (emacs_options), | 5934 | emacs_options, XtNumber (emacs_options), |
| 5922 | &argc, argv, | 5935 | &argc, argv, |