'Focus the first window with the given name. Do nothing if the name is
not found.'

def cmd_focus_by_name(self, name):

    for win in self.windows:
        if (win.name == name):
            self.focus(win)
            break
