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

pull/2987/head
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_); std::lock_guard<std::mutex> lock(mutex_);
auto it = std::find_if(workspaces_.begin(), workspaces_.end(), 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()) { if (it == workspaces_.end()) {
return true; return true;
} }