fix: remove focused_
This commit is contained in:
parent
f7e1d34251
commit
6aa8aa3b22
|
|
@ -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
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue