]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_term_init): Don't use initializer for null_bits.
authorRichard M. Stallman <rms@gnu.org>
Thu, 10 Jul 1997 02:13:26 +0000 (02:13 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 10 Jul 1997 02:13:26 +0000 (02:13 +0000)
(XTread_socket) <KeyPress>: Call XFilterEvent.

src/xterm.c

index 9690a3dd24b97e92846bfb4d156b838d189bce22..43e4430e134f163ecf14313600bc683a51ac7809 100644 (file)
@@ -4135,6 +4135,10 @@ XTread_socket (sd, bufp, numchars, expected)
 #ifdef HAVE_X_I18N
                  if (FRAME_XIC (f))
                    {
+                     /* The necessity of the following line took me
+                        a full work-day to decipher from the docs!!  */
+                     if (XFilterEvent (&event, None))
+                       break;
                      nbytes = XmbLookupString (FRAME_XIC (f),
                                                &event.xkey, copy_buffer,
                                                80, &keysym,
@@ -6916,7 +6920,9 @@ x_term_init (display_name, xrm_option, resource_name)
   dpyinfo->connection = connection;
 
   {
-    char null_bits[] = { 0x00 };
+    char null_bits[1];
+
+    null_bits[0] = 0x00;
 
     dpyinfo->null_pixel
       = XCreatePixmapFromBitmapData (dpyinfo->display, dpyinfo->root_window,