From 7d5c44d4c4c03347b9bcf124c1393bc67237dd78 Mon Sep 17 00:00:00 2001 From: selurvedu Date: Mon, 27 Jul 2015 21:11:13 +0000 Subject: [PATCH] Trim unwanted bracket in layout name --- XKeyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XKeyboard.cpp b/XKeyboard.cpp index 84d08f2..2fb8142 100644 --- a/XKeyboard.cpp +++ b/XKeyboard.cpp @@ -124,7 +124,7 @@ Bool XKeyboard::initializeXkb() groupName = groupNameC; std::string::size_type pos = groupName.find('(', 0); if (pos != std::string::npos) { - groupName = groupName.substr(0, pos + 1); + groupName = groupName.substr(0, pos - 1); } _groupNames.push_back(groupName); }