diff options
| author | Richard M. Stallman | 1994-10-11 09:27:47 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-11 09:27:47 +0000 |
| commit | bdcd49ba41fd8bb45b67853741a99ae5c4e3e8c0 (patch) | |
| tree | 98edeef7dfd175fa60ef6b778a8f8fbcc4d686d4 /src/xterm.c | |
| parent | 00a78037a87c5c5a6c25a3a1509d9361524d829f (diff) | |
| download | emacs-bdcd49ba41fd8bb45b67853741a99ae5c4e3e8c0.tar.gz emacs-bdcd49ba41fd8bb45b67853741a99ae5c4e3e8c0.zip | |
(x_term_init): Call XtSetLanguageProc or XSetLocaleModifiers.
(x_make_frame_visible, x_iconify_frame):
Call x_bitmap_icon if frame wants a bitmap icon.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/xterm.c b/src/xterm.c index d9348a68386..9851b9bb3ff 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4924,6 +4924,9 @@ x_make_frame_visible (f) | |||
| 4924 | 4924 | ||
| 4925 | BLOCK_INPUT; | 4925 | BLOCK_INPUT; |
| 4926 | 4926 | ||
| 4927 | if (x_icon_type (f)) | ||
| 4928 | x_bitmap_icon (f); | ||
| 4929 | |||
| 4927 | if (! FRAME_VISIBLE_P (f)) | 4930 | if (! FRAME_VISIBLE_P (f)) |
| 4928 | { | 4931 | { |
| 4929 | #ifndef USE_X_TOOLKIT | 4932 | #ifndef USE_X_TOOLKIT |
| @@ -5092,9 +5095,13 @@ x_iconify_frame (f) | |||
| 5092 | if (f->async_iconified) | 5095 | if (f->async_iconified) |
| 5093 | return; | 5096 | return; |
| 5094 | 5097 | ||
| 5095 | #ifdef USE_X_TOOLKIT | ||
| 5096 | BLOCK_INPUT; | 5098 | BLOCK_INPUT; |
| 5097 | 5099 | ||
| 5100 | if (x_icon_type (f)) | ||
| 5101 | x_bitmap_icon (f); | ||
| 5102 | |||
| 5103 | #ifdef USE_X_TOOLKIT | ||
| 5104 | |||
| 5098 | if (! FRAME_VISIBLE_P (f)) | 5105 | if (! FRAME_VISIBLE_P (f)) |
| 5099 | { | 5106 | { |
| 5100 | if (! EQ (Vx_no_window_manager, Qt)) | 5107 | if (! EQ (Vx_no_window_manager, Qt)) |
| @@ -5120,8 +5127,6 @@ x_iconify_frame (f) | |||
| 5120 | UNBLOCK_INPUT; | 5127 | UNBLOCK_INPUT; |
| 5121 | #else /* not USE_X_TOOLKIT */ | 5128 | #else /* not USE_X_TOOLKIT */ |
| 5122 | 5129 | ||
| 5123 | BLOCK_INPUT; | ||
| 5124 | |||
| 5125 | /* Make sure the X server knows where the window should be positioned, | 5130 | /* Make sure the X server knows where the window should be positioned, |
| 5126 | in case the user deiconifies with the window manager. */ | 5131 | in case the user deiconifies with the window manager. */ |
| 5127 | if (! FRAME_VISIBLE_P (f) && !FRAME_ICONIFIED_P (f)) | 5132 | if (! FRAME_VISIBLE_P (f) && !FRAME_ICONIFIED_P (f)) |
| @@ -5439,6 +5444,10 @@ x_term_init (display_name, xrm_option, resource_name) | |||
| 5439 | x_focus_frame = x_highlight_frame = 0; | 5444 | x_focus_frame = x_highlight_frame = 0; |
| 5440 | 5445 | ||
| 5441 | #ifdef USE_X_TOOLKIT | 5446 | #ifdef USE_X_TOOLKIT |
| 5447 | #ifdef HAVE_X11R5 | ||
| 5448 | XtSetLanguageProc (NULL, NULL, NULL); | ||
| 5449 | #endif | ||
| 5450 | |||
| 5442 | argv = (char **) XtMalloc (7 * sizeof (char *)); | 5451 | argv = (char **) XtMalloc (7 * sizeof (char *)); |
| 5443 | argv[0] = ""; | 5452 | argv[0] = ""; |
| 5444 | argv[1] = "-display"; | 5453 | argv[1] = "-display"; |
| @@ -5460,6 +5469,9 @@ x_term_init (display_name, xrm_option, resource_name) | |||
| 5460 | x_current_display = XtDisplay (Xt_app_shell); | 5469 | x_current_display = XtDisplay (Xt_app_shell); |
| 5461 | 5470 | ||
| 5462 | #else /* not USE_X_TOOLKIT */ | 5471 | #else /* not USE_X_TOOLKIT */ |
| 5472 | #ifdef HAVE_X11R5 | ||
| 5473 | XSetLocaleModifiers (""); | ||
| 5474 | #endif | ||
| 5463 | x_current_display = XOpenDisplay (display_name); | 5475 | x_current_display = XOpenDisplay (display_name); |
| 5464 | #endif /* not USE_X_TOOLKIT */ | 5476 | #endif /* not USE_X_TOOLKIT */ |
| 5465 | if (x_current_display == 0) | 5477 | if (x_current_display == 0) |