summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/MainController.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index c2d31d6..596edd2 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -291,6 +291,10 @@ void MainController::handleInputIdleChanged(bool idle) {
}
}
else {
+ if (!preIdlePresence_) {
+ /* We didn't go autoaway (the user was already away when the timer ticked */
+ return;
+ }
if (client_ && client_->isAvailable()) {
sendPresence(preIdlePresence_);
} else {