[gnome-settings-daemon] add '-k' option to syndaemon call for 'Disable touchpad while typing'



commit 6162fe172bba49726f640557e2bd27feb742f887
Author: C de-Avillez <hggdh2 gmail com>
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).

 ChangeLog                         |    6 ++++++
 plugins/mouse/gsd-mouse-manager.c |    5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8ca3bbe..5b02f1e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-03  C de-Avillez <hggdh2 ubuntu com>
+
+	* plugins/mouse/gsd-mouse-manager.c: add '-k' to syndaemon
+	call, in order to ignore modifier keys when monitoring keyboard.
+	Thanks to Dag Asheim for spotting this, and proposing a patch.
+
 2008-07-01  Sergey Udaltsov <svu gnome org>
 
 	* configure.ac, plugins/keyboard/gsd-keyboard-xkb.c: depend on
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index dca9c3d..80933aa 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -487,7 +487,7 @@ set_disable_w_typing (GsdMouseManager *manager, gboolean state)
 
         if (state) {
                 GError        *error = NULL;
-                const char *args[4];
+                const char *args[5];
 
                 if (manager->priv->syndaemon_spawned)
                         return 0;
@@ -495,7 +495,8 @@ set_disable_w_typing (GsdMouseManager *manager, gboolean state)
                 args[0] = "syndaemon";
                 args[1] = "-i";
                 args[2] = "0.5";
-                args[3] = NULL;
+                args[3] = "-k;
+                args[4] = NULL;
 
                 if (!g_find_program_in_path (args[0]))
                         return 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]