summaryrefslogtreecommitdiff
path: root/src/managers/eventLoop/EventLoopTimer.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2024-08-30 17:37:52 +0200
committerGitHub <noreply@github.com>2024-08-30 17:37:52 +0200
commitc5fd5771814958ad274ea9abb961fff621a35b9c (patch)
treee955a8465ef0b8680603b8f7860b012b2991a09f /src/managers/eventLoop/EventLoopTimer.cpp
parentfbd63543930417f3cefe36bdb9f2cdd20fc3693a (diff)
config: Add a window rule to render while unfocused (#7582)
Diffstat (limited to 'src/managers/eventLoop/EventLoopTimer.cpp')
-rw-r--r--src/managers/eventLoop/EventLoopTimer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/eventLoop/EventLoopTimer.cpp b/src/managers/eventLoop/EventLoopTimer.cpp
index d3cfdf8d..b8943b7c 100644
--- a/src/managers/eventLoop/EventLoopTimer.cpp
+++ b/src/managers/eventLoop/EventLoopTimer.cpp
@@ -49,3 +49,7 @@ float CEventLoopTimer::leftUs() {
return std::chrono::duration_cast<std::chrono::microseconds>(*expires - std::chrono::steady_clock::now()).count();
}
+
+bool CEventLoopTimer::armed() {
+ return expires.has_value();
+}