From ee4febcd06691d789e4d664056fddead216c8908 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Sun, 3 Jul 2016 19:46:55 -0700 Subject: [PATCH] linux-capture: Don't find window via class if class empty --- plugins/linux-capture/xcompcap-main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/linux-capture/xcompcap-main.cpp b/plugins/linux-capture/xcompcap-main.cpp index 2b3f1e1f6..7a09ecbbf 100644 --- a/plugins/linux-capture/xcompcap-main.cpp +++ b/plugins/linux-capture/xcompcap-main.cpp @@ -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; }