From 098b79b3316e09139941a07dbe54b5d22bd2008d Mon Sep 17 00:00:00 2001 From: Hayodea Hakol Date: Tue, 14 Jan 2025 21:11:47 -0400 Subject: [PATCH] xcbXorg: Add new param keys: devsubstring, devstring * devsubstring: substring match on window name. * devstring: exact match on window name --- senseApis/xcbXorg/xcbXorg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/senseApis/xcbXorg/xcbXorg.cpp b/senseApis/xcbXorg/xcbXorg.cpp index 4d9ea61..06ad20e 100644 --- a/senseApis/xcbXorg/xcbXorg.cpp +++ b/senseApis/xcbXorg/xcbXorg.cpp @@ -265,13 +265,13 @@ public: windowSelector.matchType = xcb_window_search::MatchType::ID; break; } - if (param.first == "dev-string" - || param.first == "dev-str" || param.first == "devstr") + if (param.first == "dev-string" || param.first == "dev-str" + || param.first == "devstr" || param.first == "devstring") { windowSelector.matchType = xcb_window_search::MatchType::EXACT; } - if (param.first == "dev-substring" - || param.first == "dev-substr" || param.first == "devsubstr") + if (param.first == "dev-substring" || param.first == "dev-substr" + || param.first == "devsubstr" || param.first == "devsubstring") { windowSelector.matchType = xcb_window_search:: MatchType::SUBSTRING;