Merge pull request #2934 from tomben13/master

Fixed window#waybar.swallowing for module hyprland/window
pull/2949/head
Alexis Rouillard 2024-02-20 10:39:33 +01:00 committed by GitHub
commit 4ef5b48474
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ void Window::queryActiveWorkspace() {
return window["workspace"]["id"] == workspace_.id && window["mapped"].asBool(); return window["workspace"]["id"] == workspace_.id && window["mapped"].asBool();
}); });
swallowing_ = std::any_of(workspace_windows.begin(), workspace_windows.end(), swallowing_ = std::any_of(workspace_windows.begin(), workspace_windows.end(),
[&](Json::Value window) { return !window["swallowing"].isNull(); }); [&](Json::Value window) { return !window["swallowing"].isNull() && window["swallowing"].asString() != "0x0"; });
std::vector<Json::Value> visible_windows; std::vector<Json::Value> visible_windows;
std::copy_if(workspace_windows.begin(), workspace_windows.end(), std::copy_if(workspace_windows.begin(), workspace_windows.end(),
std::back_inserter(visible_windows), std::back_inserter(visible_windows),