Don't require that a window be on the top of the window stack for minimization (to fix issue #45).