def button_press(self, x, y):
        """Returns self if clicked on title else returns sibling"""
        if self._title_top <= y < self._children_top:
            return self
        return super().button_press(x, y)
Returns self if clicked on title else returns sibling
libqtile/layout/tree.py