feat(workspaces): add thread sleep

pull/1/head
Alexis 2018-08-09 00:33:33 +02:00
parent bc1c362c06
commit e5b5be3b37
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ waybar::modules::WorkspaceSelector::WorkspaceSelector(Bar &bar)
ipc_single_command(_ipcEventSocketfd, IPC_SUBSCRIBE, subscribe, &len); ipc_single_command(_ipcEventSocketfd, IPC_SUBSCRIBE, subscribe, &len);
_thread = [this] { _thread = [this] {
update(); update();
_thread.sleep_for(chrono::milliseconds(250));
}; };
} }