Skip to content

Commit

Permalink
Fix hyprland/language events not working with keyboard names with com…
Browse files Browse the repository at this point in the history
…mas in them (#3224)
  • Loading branch information
zjeffer authored May 7, 2024
1 parent e627879 commit 29917fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/hyprland/language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ auto Language::update() -> void {
void Language::onEvent(const std::string& ev) {
std::lock_guard<std::mutex> lg(mutex_);
std::string kbName(begin(ev) + ev.find_last_of('>') + 1, begin(ev) + ev.find_first_of(','));
auto layoutName = ev.substr(ev.find_first_of(',') + 1);
auto layoutName = ev.substr(ev.find_last_of(',') + 1);

if (config_.isMember("keyboard-name") && kbName != config_["keyboard-name"].asString())
return; // ignore
Expand Down

0 comments on commit 29917fb

Please sign in to comment.