def focus_by_name(self, name):
        """
        Focus the first window with the given name. Do nothing if the name is
        not found.
        """
        for win in self.windows:
            if win.name == name:
                self.focus(win)
                break

        Focus the first window with the given name. Do nothing if the name is
        not found.
        
libqtile/group.py