Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507312 - x11-misc/unclutter - mouse pointer flickers
Summary: x11-misc/unclutter - mouse pointer flickers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-04-10 11:15 UTC by Teika kazura
Modified: 2014-04-10 12:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild with "epatch". (unclutter-8-r3.ebuild,987 bytes, text/plain)
2014-04-10 11:16 UTC, Teika kazura
Details
The patch (unclutter-8-unflicker.patch,715 bytes, patch)
2014-04-10 11:17 UTC, Teika kazura
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Teika kazura 2014-04-10 11:15:08 UTC
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.
Comment 1 Teika kazura 2014-04-10 11:16:30 UTC
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
Comment 2 Teika kazura 2014-04-10 11:17:09 UTC
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 3 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-10 12:46:56 UTC
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() {
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-10 12:59:18 UTC
I added the patch in -r3. Thanks for the report!