diff options
| author | Richard M. Stallman | 1997-07-10 02:13:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-10 02:13:26 +0000 |
| commit | 5d7cc324addae95918b29fed2dce7d5a3e03ef5b (patch) | |
| tree | 4fb932751806996f876bd9a34d7c6dfeb4ae166a /src | |
| parent | b56822304a52e7fb7c9b9b27fe7c2de2176843d7 (diff) | |
| download | emacs-5d7cc324addae95918b29fed2dce7d5a3e03ef5b.tar.gz emacs-5d7cc324addae95918b29fed2dce7d5a3e03ef5b.zip | |
(x_term_init): Don't use initializer for null_bits.
(XTread_socket) <KeyPress>: Call XFilterEvent.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 9690a3dd24b..43e4430e134 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4135,6 +4135,10 @@ XTread_socket (sd, bufp, numchars, expected) | |||
| 4135 | #ifdef HAVE_X_I18N | 4135 | #ifdef HAVE_X_I18N |
| 4136 | if (FRAME_XIC (f)) | 4136 | if (FRAME_XIC (f)) |
| 4137 | { | 4137 | { |
| 4138 | /* The necessity of the following line took me | ||
| 4139 | a full work-day to decipher from the docs!! */ | ||
| 4140 | if (XFilterEvent (&event, None)) | ||
| 4141 | break; | ||
| 4138 | nbytes = XmbLookupString (FRAME_XIC (f), | 4142 | nbytes = XmbLookupString (FRAME_XIC (f), |
| 4139 | &event.xkey, copy_buffer, | 4143 | &event.xkey, copy_buffer, |
| 4140 | 80, &keysym, | 4144 | 80, &keysym, |
| @@ -6916,7 +6920,9 @@ x_term_init (display_name, xrm_option, resource_name) | |||
| 6916 | dpyinfo->connection = connection; | 6920 | dpyinfo->connection = connection; |
| 6917 | 6921 | ||
| 6918 | { | 6922 | { |
| 6919 | char null_bits[] = { 0x00 }; | 6923 | char null_bits[1]; |
| 6924 | |||
| 6925 | null_bits[0] = 0x00; | ||
| 6920 | 6926 | ||
| 6921 | dpyinfo->null_pixel | 6927 | dpyinfo->null_pixel |
| 6922 | = XCreatePixmapFromBitmapData (dpyinfo->display, dpyinfo->root_window, | 6928 | = XCreatePixmapFromBitmapData (dpyinfo->display, dpyinfo->root_window, |