About twice a day, after switching spaces, the window that indicates which space is active doesn't go away, then all keyboard input is ignored except for Ctrl+arrow key to switch to a different space. The problem is fixed by logging out and back in. I've googled around but haven't been able to find anything. I've also ruled out a sticky control key because it happens whether I'm using the Macbook's keyboard or an external one.
Any ideas?