fix: remove focused_

This commit is contained in:
Khiet Tam Nguyen
2024-08-24 12:57:10 +10:00
parent f7e1d34251
commit 6aa8aa3b22
2 changed files with 0 additions and 7 deletions

View File

@ -36,7 +36,6 @@ class WindowCount : public waybar::AAppIconLabel, public EventHandler {
std::mutex mutex_;
const Bar& bar_;
Workspace workspace_;
bool focused_;
};
} // namespace waybar::modules::hyprland

View File

@ -125,12 +125,6 @@ void WindowCount::queryActiveWorkspace() {
} else {
workspace_ = getActiveWorkspace();
}
focused_ = true;
if (workspace_.windows == 0) {
focused_ = false;
}
}
void WindowCount::onEvent(const std::string& ev) {