fix: remove focused_
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user