From kde-bugs-dist Thu Sep 03 19:29:10 2009 From: Jakub Stachowski Date: Thu, 03 Sep 2009 19:29:10 +0000 To: kde-bugs-dist Subject: [Bug 201587] Causes ~1 wakeup per second when idle Message-Id: <20090903192910.47A311D16C () immanuel ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=125200619120384 https://bugs.kde.org/show_bug.cgi?id=201587 --- Comment #1 from Jakub Stachowski 2009-09-03 21:29:08 --- Created an attachment (id=36670) --> (http://bugs.kde.org/attachment.cgi?id=36670) Disable timer when it is not necessary Cause of the problem being fixed: klipper sets up a timer to check if there were too many clipboard changes in last second (overflow timer). It is enabled all the time, no matter if someone actually uses the clipboard or not. Fix: enable timer only after a clipboard change (if it is not yet enabled). When the timer fires, do all checks as usual and disable it. Timer handler resets overflow count to 0 so it is not possible that an overflow will be missed because of this patch. -- Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.