Merge pull request #2986 from ErikReider/sway-workspaces-scroll-fix

This commit is contained in:
Alexis Rouillard 2024-03-02 23:37:06 +01:00 committed by GitHub
commit 97cd2b47b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -427,7 +427,7 @@ bool Workspaces::handleScroll(GdkEventScroll *e) {
{
std::lock_guard<std::mutex> lock(mutex_);
auto it = std::find_if(workspaces_.begin(), workspaces_.end(),
[](const auto &workspace) { return workspace["focused"].asBool(); });
[](const auto &workspace) { return hasFlag(workspace, "focused"); });
if (it == workspaces_.end()) {
return true;
}