mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
Sway-Workspaces: Fixed scrolling not working
Fixes regression in bb843e0
that caused scrolling over the bar not working
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user