Sway-Workspaces: Fixed scrolling not working

Fixes regression in bb843e0 that caused scrolling over the bar not working
pull/2986/head
Erik Reider 2024-03-02 23:08:21 +01:00
parent bdff489850
commit 9de0e393ab
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;
}