Flicker fix
also fixes problems with slice layout, because the maximized window
which was not focused just got hidden. Also there was no check that
the attribute self.focused or self.clients existed, there were crashes
the case.