Affected package: x11-misc/unclutter. All versions. Not a regression. Description: x11-misc/unclutter causes busy mouse pointer flickering, leading to high CPU usage on some gtk+ windows, in both gtk+ 2 and 3. (The correct, expected behavior is to hide the cursor after some idle time.) Debian testing release ("jessie") adopted a patch to fix it. I wonder if you could use it. For me, it solved the problem. * Debian's bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=266118 ** In message #17, the patch was submitted: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=266118#17 ** Theoretical analysis (wordy. Sorry, TL;DR) in message #39: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=266118#39 Some history: In my case, this issue is new, met by updating app-text/zathura to 0.2.7. (Previously I built zathura with gtk+2, but 0.2.7 foces gtk+3.) It's the sole case I've seen. OTOH it's an old bug, at least from 2004. See e.g. * https://issues.apache.org/ooo/show_bug.cgi?id=82164 * https://bugs.launchpad.net/ubuntu/+source/unclutter/+bug/385034 Other notes: Debian jessie's version has three other patches. One adds several new options and looks nice, but I haven't tried them, nor can fully understand their validity. Thank you very much in advance, our Gentoo developers. Regards.
Created attachment 374678 [details] Ebuild with "epatch". Ebuild, based on x11-misc/unclutter-8-r2.ebuild. The changes are * the header * "inherit eutils", and a new line of epatch
Created attachment 374680 [details, diff] The patch The Debian patch. [1] It's GPL-3+, but I don't know how to record it. The contents is as-is, but the filename is changed. [1] http://ftp.de.debian.org/debian/pool/main/u/unclutter/unclutter_8-19.debian.tar.gz -> debian/patches/03-fix-gtk-blinking.patch
Comment on attachment 374678 [details] Ebuild with "epatch". --- unclutter-8-r2.ebuild 2011-03-22 00:58:11.000000000 +0100 +++ - 2014-04-10 14:46:46.857262688 +0200 @@ -4,7 +4,7 @@ EAPI=2 -inherit toolchain-funcs +inherit toolchain-funcs eutils DESCRIPTION="Hides mouse pointer while not in use." HOMEPAGE="http://www.ibiblio.org/pub/X11/contrib/utilities/unclutter-8.README" @@ -23,6 +23,8 @@ src_prepare() { sed -i -e "/stdio/ a #include <stdlib.h>" unclutter.c || die #implictits + epatch "${FILESDIR}"/${P}-unflicker.patch + } src_compile() {
I added the patch in -r3. Thanks for the report!