windowManager.js: Fix invisible windows when you click too fast in the
window list.

Fixes: #3173