commit
83ae5ec5c9
|
@ -37,7 +37,7 @@ struct SleeperThread {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isRunnging() const
|
bool isRunning() const
|
||||||
{
|
{
|
||||||
return do_run_;
|
return do_run_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ void waybar::modules::sway::Workspaces::worker()
|
||||||
while (bar_.output_name.empty()) {
|
while (bar_.output_name.empty()) {
|
||||||
thread_.sleep_for(chrono::milliseconds(150));
|
thread_.sleep_for(chrono::milliseconds(150));
|
||||||
}
|
}
|
||||||
} else if (thread_.isRunnging() && !workspaces_.empty()) {
|
} else if (thread_.isRunning() && !workspaces_.empty()) {
|
||||||
ipc_.handleEvent();
|
ipc_.handleEvent();
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue