From e5b5be3b37f835da09522584049a2e04e3329f9f Mon Sep 17 00:00:00 2001 From: Alexis Date: Thu, 9 Aug 2018 00:33:33 +0200 Subject: [PATCH] feat(workspaces): add thread sleep --- src/modules/workspaces.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/workspaces.cpp b/src/modules/workspaces.cpp index c8904952..ee8c8748 100644 --- a/src/modules/workspaces.cpp +++ b/src/modules/workspaces.cpp @@ -13,6 +13,7 @@ waybar::modules::WorkspaceSelector::WorkspaceSelector(Bar &bar) ipc_single_command(_ipcEventSocketfd, IPC_SUBSCRIBE, subscribe, &len); _thread = [this] { update(); + _thread.sleep_for(chrono::milliseconds(250)); }; }