Updating branch refs/heads/master
         to ba2814293bf6d4298763c7a56c75a6f556e0bd9f (commit)
       from a5f79b94560bce65142ab262fa2f3113fec6d981 (commit)

commit ba2814293bf6d4298763c7a56c75a6f556e0bd9f
Author: Martin Pitt <[email protected]>
Date:   Thu Oct 14 12:35:43 2010 +0200

    Ignore virtual XTEST mouse
    
    Do not display the "Virtual core XTEST pointer" in the mouse settings; it 
does
    not make sense for the user to configure this device, as it won't have any
    apparent effect, and is just confusing. Worse, it's usually the first 
device in
    the list.
    
    http://bugzilla.xfce.org/show_bug.cgi?id=6735

 dialogs/mouse-settings/main.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dialogs/mouse-settings/main.c b/dialogs/mouse-settings/main.c
index 456d01f..c6ca16d 100644
--- a/dialogs/mouse-settings/main.c
+++ b/dialogs/mouse-settings/main.c
@@ -923,6 +923,10 @@ mouse_settings_device_populate_store (GtkBuilder *builder,
             if (G_UNLIKELY (num_buttons <= 0))
                 continue;
 
+            /* ignore XTEST device */
+            if (g_str_has_prefix (device_info->name, "Virtual core XTEST"))
+                continue;
+
             /* create a valid xfconf device name */
             device_name = mouse_settings_device_xfconf_name 
(device_info->name);
 
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to