linux-capture: Don't find window via class if class empty

This commit is contained in:
jp9000
2016-07-03 19:46:55 -07:00
parent 4c505e7030
commit ee4febcd06

View File

@@ -237,7 +237,8 @@ static Window getWindowFromString(std::string wstr)
if (cwin == wid && wname == cwinname && wcls == ccls)
return wid;
if (wname == cwinname || (!matchedNameWin && wcls == ccls))
if (wname == cwinname ||
(!matchedNameWin && !wcls.empty() && wcls == ccls))
matchedNameWin = cwin;
}