- if ((seqclass && !strcmp(seqclass, wmclass)) ||
- (seqclass && !strcmp(seqclass, name)) ||
- /* Check the binary name against the class and name hints
- as well, to help apps that don't have the class set
- correctly */
- (seqbin && !g_ascii_strcasecmp(seqbin, wmclass)) ||
- (seqbin && !g_ascii_strcasecmp(seqbin, name)))
- {
- found = TRUE;
- }
+ found = (seqclass && !strcmp(seqclass, wmclass)) ||
+ (seqclass && !strcmp(seqclass, name));
+ }
+ else if (seqbin) {
+ /* Check the binary name against the class and name hints
+ as well, to help apps that don't have the class set
+ correctly */
+ found = (seqbin && !g_ascii_strcasecmp(seqbin, wmclass)) ||
+ (seqbin && !g_ascii_strcasecmp(seqbin, name));