Allow window matching based on the group leader's name and class (Fix bug 5721)