Program interface is stuck when switch between fullscreen and windowed

I just run the example program ‘boing’ on ubuntu 16.04. I pressed alt+enter to switch it to fullscreen and then again to windowed.After a couple of times,program interface is stuck.But It work fine on windows.
whats wrong with this?Is that a BUG? Does anyone have the same problem