Merge pull request #2986 from ErikReider/sway-workspaces-scroll-fix
This commit is contained in:
commit
97cd2b47b8
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue