aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
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,