windowManager.js: Fix unintentional invisible windows when using
certain desktop effects.

Fixes #3058