From b4d38294a7b0073d30629dd298e8aee9a411b035 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Thu, 27 Dec 2018 16:03:29 -0800 Subject: [PATCH] Fix typo --- include/util/chrono.hpp | 2 +- src/modules/sway/workspaces.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/util/chrono.hpp b/include/util/chrono.hpp index 33bc0ef7..f2940abe 100644 --- a/include/util/chrono.hpp +++ b/include/util/chrono.hpp @@ -37,7 +37,7 @@ struct SleeperThread { return *this; } - bool isRunnging() const + bool isRunning() const { return do_run_; } diff --git a/src/modules/sway/workspaces.cpp b/src/modules/sway/workspaces.cpp index 911e3113..44179641 100644 --- a/src/modules/sway/workspaces.cpp +++ b/src/modules/sway/workspaces.cpp @@ -23,7 +23,7 @@ void waybar::modules::sway::Workspaces::worker() while (bar_.output_name.empty()) { thread_.sleep_for(chrono::milliseconds(150)); } - } else if (thread_.isRunnging() && !workspaces_.empty()) { + } else if (thread_.isRunning() && !workspaces_.empty()) { ipc_.handleEvent(); } {