mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-08 00:45:58 +01:00
Fix a bux regarding keybindings of X key
This commit is contained in:
parent
8bad02d115
commit
46c282bad5
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ uint32_t KeybindManager::getKeyCodeFromName(std::string name) {
|
|||
}
|
||||
|
||||
try {
|
||||
returnValue = returnValue.substr(returnValue.find_last_of('x') + 1);
|
||||
returnValue = returnValue.substr(returnValue.find_first_of('x') + 1);
|
||||
returnValue = returnValue.substr(0, returnValue.find_first_of(' '));
|
||||
|
||||
Debug::log(LOG, "queried for key " + name + " -> response keysym " + returnValue);
|
||||
|
@ -74,7 +74,7 @@ uint32_t KeybindManager::getKeyCodeFromName(std::string name) {
|
|||
}
|
||||
|
||||
try {
|
||||
returnValue = returnValue.substr(returnValue.find_last_of('x') + 1);
|
||||
returnValue = returnValue.substr(returnValue.find_first_of('x') + 1);
|
||||
returnValue = returnValue.substr(0, returnValue.find_first_of(' '));
|
||||
|
||||
Debug::log(LOG, "queried for key " + name + " -> response keysym " + returnValue);
|
||||
|
|
Loading…
Reference in a new issue