Sway-Workspaces: Fixed scrolling not working
Fixes regression in bb843e0
that caused scrolling over the bar not working
This commit is contained in:
parent
bdff489850
commit
9de0e393ab
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue