From b264498956ab02e5a60f2d1ebb893a667cdb3e77 Mon Sep 17 00:00:00 2001 From: karxi Date: Thu, 22 Dec 2016 00:50:42 -0500 Subject: [PATCH] Made automatic idle set away status the way it should. --- pesterchum.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pesterchum.py b/pesterchum.py index d3651c5..e6c0b73 100644 --- a/pesterchum.py +++ b/pesterchum.py @@ -2138,6 +2138,8 @@ class PesterWindow(MovingWindow): if newpos != oldpos: # Cursor moved; unset idle. self.idler.auto = False + self.setAway.emit(False) + self.randhandler.setIdle(False) return if newpos != oldpos: @@ -2152,7 +2154,9 @@ class PesterWindow(MovingWindow): self.idler.auto = True # We don't need this anymore. self.idler.time = 0 - # Send out the messages. + # Make it clear that we're idle. + self.setAway.emit(True) + self.randhandler.setIdle(True) self._sendIdleMsgs() def _sendIdleMsgs(self):