Merge pull request #325 from RX14/bugfix/scroll-broken

Fix workspace scroll wrapping off the end of the list
This commit is contained in:
Alex 2019-05-17 20:23:51 +02:00 committed by GitHub
commit c862fde986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ const std::string Workspaces::getCycleWorkspace(std::vector<Json::Value>::iterat
else if (!prev && it != workspaces_.end())
++it;
if (!prev && it == workspaces_.end()) {
return (*(++workspaces_.begin()))["name"].asString();
return (*(workspaces_.begin()))["name"].asString();
}
return (*it)["name"].asString();
}