mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
Merge pull request #2986 from ErikReider/sway-workspaces-scroll-fix
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user