[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 201587] Causes ~1 wakeup per second when idle
From:       Jakub Stachowski <qbast () go2 ! pl>
Date:       2009-09-03 19:29:10
Message-ID: 20090903192910.47A311D16C () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=201587





--- Comment #1 from Jakub Stachowski <qbast go2 pl>  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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic