From b81e1759349a02f319eb5af7d8832619fbecbf5d Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 14 Oct 2010 12:35:43 +0200 Subject: [PATCH] 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); -- 1.7.1