def _remove_from_focus_history(self, win):
        try:
            index = self.focusHistory.index(win)
        except __HOLE__:
            # win has never received focus
            return False
        else:
            del self.focusHistory[index]
            # return True if win was the last item (i.e. it was currentWindow)
            return index == len(self.focusHistory)
dataset/ETHPy150Open qtile/qtile/libqtile/group.py/_Group._remove_from_focus_history