For quite some time I have seen a strange bug where emacs (running under
X11) would occasionally stop responding to keyboard and mouse events. The
editor is still alive, and will change the cursor block in response to
focus events, but mouse clicks and keystrokes have no effect. The only way
I've found to recover is to kill the emacs process and start over.
Today I figured out how to reproduce it: move the pointer to the menubar at
the top of the window, then move the scroll wheel for a click or two.
Works every time. Does not appear to be dependent on major mode.