diff --git a/src/xterm.c b/src/xterm.c index ad00a4eccf1..3b774e3b621 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9434,7 +9434,10 @@ XTread_socket (sd, bufp, numchars, expected) if (status_return == XLookupNone) break; else if (status_return == XLookupChars) - keysym = NoSymbol; + { + keysym = NoSymbol; + modifiers = 0; + } else if (status_return != XLookupKeySym && status_return != XLookupBoth) abort ();