On Mon, Apr 27, 2009 at 06:26:44PM +0200, Michal Čihař wrote:
> Hi
>
> Dne Thu, 23 Apr 2009 22:52:05 +0200
> Alex Dănilă <[email protected]> napsal(a):
>
> > Hi, I ran GSynaptics wanting to reduce the size of the scroll area, and
> > ever since tapping no longer works after an Xorg/computer restart. Also,
> > before running this program I had middle click and right click tapping
> > in the right corners of the touchpad, now they cannot be enabled anymore.
> >
> > After an Xorg restart, in order to re-enable tapping I need to run
> > GSynaptics again.
Seems like gsynaptics does not save the 'enable tapping' setting in
%gconf.xml. Attached is a patch to address only this problem (to save
and use the 'enable tapping' setting).
> >
> > It doesn't really make sense, but I cannot relate loosing taping to any
> > other event, so I assume it was broken by running GSynaptics.
>
> Well GSynaptics is going to die soon. There is better replacement
> gpointer-device-settings, which is waiting in new. As all other
> components in your system are pretty new, Gsynaptics might show up some
> compatibility problem. I assume you to try gpointer-device-settings.
>
> --
> Michal Čihař | http://cihar.com | http://blog.cihar.com
Index: debian/patches/enable-tapping-button-for-tap.patch
===================================================================
--- debian/patches/enable-tapping-button-for-tap.patch (revision 0)
+++ debian/patches/enable-tapping-button-for-tap.patch (revision 0)
@@ -0,0 +1,35 @@
+Index: gsynaptics-0.9.16/src/init.c
+===================================================================
+--- gsynaptics-0.9.16.orig/src/init.c 2009-05-02 18:21:54.000000000 +0530
++++ gsynaptics-0.9.16/src/init.c 2009-05-02 18:22:09.000000000 +0530
+@@ -109,6 +109,18 @@
+ gconf_value_free(gval);
+ }
+
++ /* enable tapping */
++ gval = gconf_client_get (gconf, BUTTONFORTAP_KEY, NULL);
++ if (gval != NULL) {
++ if (gval->type == GCONF_VALUE_BOOL) {
++ b_value = gconf_value_get_bool(gval);
++ g_synaptics_set_button_for_tap(synaptics, OneFinger, b_value ? 1 : 0);
++ g_synaptics_set_button_for_tap(synaptics, TwoFingers, b_value ? 3 : 0);
++ g_synaptics_set_button_for_tap(synaptics, ThreeFingers, b_value ? 2 : 0);
++ }
++ gconf_value_free(gval);
++ }
++
+ /* fast taps */
+ gval = gconf_client_get (gconf, FASTTAPS_KEY, NULL);
+ if (gval != NULL) {
+Index: gsynaptics-0.9.16/src/main.c
+===================================================================
+--- gsynaptics-0.9.16.orig/src/main.c 2009-05-02 18:21:57.000000000 +0530
++++ gsynaptics-0.9.16/src/main.c 2009-05-02 18:22:13.000000000 +0530
+@@ -226,6 +226,7 @@
+ g_synaptics_set_button_for_tap(synaptics, OneFinger, check ? 1 : 0);
+ g_synaptics_set_button_for_tap(synaptics, TwoFingers, check ? 3 : 0);
+ g_synaptics_set_button_for_tap(synaptics, ThreeFingers, check ? 2 : 0);
++ gconf_client_set_bool (gconf, BUTTONFORTAP_KEY, check, NULL);
+ gconf_client_set_int (gconf, MAXTAPTIME_KEY, time, NULL);
+ }
+
Index: debian/patches/series
===================================================================
--- debian/patches/series (revision 76)
+++ debian/patches/series (working copy)
@@ -3,4 +3,5 @@
do-not-set-zero.patch
fix-docbook.patch
sv.po.patch
+enable-tapping-button-for-tap.patch
ignore-quilt-pc.patch
Index: debian/patches/ignore-quilt-pc.patch
===================================================================
--- debian/patches/ignore-quilt-pc.patch (revision 76)
+++ debian/patches/ignore-quilt-pc.patch (working copy)
@@ -9,3 +9,5 @@
+.pc/do-not-set-zero.patch/src/init.c
+.pc/fix-desktop-file.patch/data/gsynaptics-init.desktop.in.in
+.pc/fix-desktop-file.patch/data/gsynaptics.desktop.in.in
++.pc/enable-tapping-button-for-tap.patch/src/main.c
++.pc/enable-tapping-button-for-tap.patch/src/init.c