After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 590588 - "Disable touchpad while typing" should ignore modifier keys when monitoring keyboard activity
"Disable touchpad while typing" should ignore modifier keys when monitoring k...
Status: RESOLVED FIXED
Product: gnome-settings-daemon
Classification: Core
Component: plugins
2.27.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-settings-daemon-maint
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2009-08-03 09:04 UTC by C de-Avillez
Modified: 2009-08-03 18:25 UTC
See Also:
GNOME target: ---
GNOME version: 2.27/2.28


Attachments
patch against GIT (988 bytes, patch)
2009-08-03 09:35 UTC, C de-Avillez
none Details | Review
corrected patch, now expanding argv[*]. (1.76 KB, patch)
2009-08-03 17:41 UTC, C de-Avillez
committed Details | Review
corrected patch. I believe. At least it does compile, now. (1.76 KB, patch)
2009-08-03 18:20 UTC, C de-Avillez
committed Details | Review

Description C de-Avillez 2009-08-03 09:04:16 UTC
Original Ubuntu bug: https://bugs.edge.launchpad.net/ubuntu/+source/gnome-settings-daemon/+bug/408095



Binary package hint: gnome-settings-daemon

The "Disable touchpad while typing" option is useful to avoid accidental touchpad actions while typing. But the current implementation makes it inconvenient to press e.g. "Ctrl" and "Left touchpad button" simultaneously. (This opens a link in a new tab in Firefox, so it is a handy combination when browsing using a computer with less than three touchpad buttons.) It would be much better if the modifier keys where ignored when monitoring keyboard activity.

I don't know if everybody else use modifier key combos as often as me, but for me this qualifies as a potential "papercut". At least the bug has the papercut-quality of being trivially fixable; it is just to start "syndaemon" with a "k" option in gnome-settings-daemon-2.27.5/plugins/mouse/gsd-mouse-manager.c:

                args[0] = "syndaemon";
                args[1] = "-i";
                args[2] = "0.5";
                args[3] = "-k";
                args[4] = NULL;

I will attach the patch against GIT as soon as I clone it.
Comment 1 C de-Avillez 2009-08-03 09:35:25 UTC
Created attachment 139772 [details] [review]
patch against GIT
Comment 2 Jens Granseuer 2009-08-03 17:01:14 UTC
Sounds reasonable. The patch is broken, though. (C doesn't do dynamic arrays...)
Comment 3 C de-Avillez 2009-08-03 17:26:47 UTC
Heh. My very first submission to g-s-d, with a *basic* error... <shame/>.

Ah well. I always thought dynamic arrays were a good idea for C ;-)

Will attach a new patch in a few (and *then* I wonder about *which* bytes were those I have clubbed to death).

Marking current patch as obsolete. Would you rather have git patch or normal diff?
Comment 4 Jens Granseuer 2009-08-03 17:37:29 UTC
Doesn't really matter. If you cannot commit yourself, I'm likely to rewrite the commit message anyway. ;-)
Comment 5 C de-Avillez 2009-08-03 17:41:14 UTC
Created attachment 139803 [details] [review]
corrected patch, now expanding argv[*]. 

Please feel free to adjust the ChangeLog and git log entries. Sorry for the mistake.
Comment 6 Jens Granseuer 2009-08-03 17:57:57 UTC
Thanks!

commit 6162fe172bba49726f640557e2bd27feb742f887
Author: C de-Avillez <...>
Date:   Mon Aug 3 12:33:40 2009 -0500

    add '-k' option to syndaemon call for 'Disable touchpad while typing'
    
    Call syndaemon with the '-k' parameter when disabling the touchpad
    while typing so that modifier keys can still be used, e.g. for
    Ctrl-Click (bug #590588).
Comment 7 C de-Avillez 2009-08-03 18:20:31 UTC
Created attachment 139808 [details] [review]
corrected patch. I believe. At least it does compile, now.

Jens, this is *really* not my day. I guess having a bout of insomnia did not help.

Somehow, my keyboard ate the closing '"' on the -k line. And -- shame on me again -- I did not notice the make error on it.

So, instead of

+                args[3] = "-k;

It should be 

+                args[3] = "-k";

That really sucked. I am sorry.
Comment 8 Jens Granseuer 2009-08-03 18:25:19 UTC
Gah! Serves me right for not building before pushing... Fixed now.