def toggle_auto_maximize(self):
        "Toggle auto maximize secondary window on focus."
        self.auto_maximize = not self.auto_maximize
        self.normalize(True)
        if self.focused != 0:
            self._maximize_focused_secondary()
Toggle auto maximize secondary window on focus.
libqtile/layout/xmonad.py