Skip to content

Commit

Permalink
Merge pull request #2485 from khaneliman/active-rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexays authored Sep 8, 2023
2 parents 38ef38b + 2837b72 commit 309edd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/modules/hyprland/workspaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ void Workspaces::onEvent(const std::string &ev) {
std::string new_name = payload.substr(payload.find(',') + 1);
for (auto &workspace : workspaces_) {
if (workspace->id() == workspace_id) {
if (workspace->name() == active_workspace_name_) {
active_workspace_name_ = new_name;
}
workspace->set_name(new_name);
break;
}
Expand Down

0 comments on commit 309edd0

Please sign in to comment.