Revert "Make panel hide intelligently with shaded windows (bug #11371)"

This reverts commit 75ed12ce2e4d5d13781fca9179268bce958f9596.